You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/05/28 02:38:18 UTC
ios commit: Fix jshint errors, and typo
Repository: cordova-ios
Updated Branches:
refs/heads/4.0.x e21bce36e -> caeba454f
Fix jshint errors, and typo
Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/caeba454
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/caeba454
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/caeba454
Branch: refs/heads/4.0.x
Commit: caeba454f65e0c75f601ff67c44ff3e6bca27171
Parents: e21bce3
Author: Shazron Abdullah <sh...@apache.org>
Authored: Wed May 27 17:38:16 2015 -0700
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Wed May 27 17:38:16 2015 -0700
----------------------------------------------------------------------
bin/templates/scripts/cordova/lib/run.js | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/caeba454/bin/templates/scripts/cordova/lib/run.js
----------------------------------------------------------------------
diff --git a/bin/templates/scripts/cordova/lib/run.js b/bin/templates/scripts/cordova/lib/run.js
index b9f64eb..a31c5da 100644
--- a/bin/templates/scripts/cordova/lib/run.js
+++ b/bin/templates/scripts/cordova/lib/run.js
@@ -76,20 +76,21 @@ module.exports.run = function (argv) {
}
}).then(function () {
if (!args.nobuild) {
+ var idx = -1;
if (useDevice) {
// remove emulator, add device
- var idx = argv.indexOf("--emulator");
+ idx = argv.indexOf('--emulator');
if (idx != -1) {
- array.splice(idx, 1);
+ argv.splice(idx, 1);
}
- argv.push("--device");
+ argv.push('--device');
} else {
// remove device, add emulator
- var idx = argv.indexOf("--device");
+ idx = argv.indexOf('--device');
if (idx != -1) {
- array.splice(idx, 1);
+ argv.splice(idx, 1);
}
- argv.push("--emulator");
+ argv.push('--emulator');
}
return build.run(argv);
} else {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org