cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [38/50] ios commit: Fix jshint errors, and typo
Date Thu, 25 Jun 2015 01:09:26 GMT
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/master
Commit: caeba454f65e0c75f601ff67c44ff3e6bca27171
Parents: e21bce3
Author: Shazron Abdullah <shazron@apache.org>
Authored: Wed May 27 17:38:16 2015 -0700
Committer: Shazron Abdullah <shazron@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


Mime
View raw message