cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jso...@apache.org
Subject git commit: CB-7199 control git/npm using platform.js
Date Fri, 25 Jul 2014 20:17:17 GMT
Repository: cordova-lib
Updated Branches:
  refs/heads/master d75575ea0 -> f944a6e39


CB-7199 control git/npm using platform.js


Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/f944a6e3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/f944a6e3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/f944a6e3

Branch: refs/heads/master
Commit: f944a6e39dc3dde984851b1c7b7dd7bacc26726f
Parents: d75575e
Author: Josh Soref <jsoref@blackberry.com>
Authored: Fri Jul 25 16:04:42 2014 -0400
Committer: Josh Soref <jsoref@blackberry.com>
Committed: Fri Jul 25 16:04:42 2014 -0400

----------------------------------------------------------------------
 cordova-lib/src/cordova/lazy_load.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/f944a6e3/cordova-lib/src/cordova/lazy_load.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/lazy_load.js b/cordova-lib/src/cordova/lazy_load.js
index fd6df2d..8ea791b 100644
--- a/cordova-lib/src/cordova/lazy_load.js
+++ b/cordova-lib/src/cordova/lazy_load.js
@@ -63,7 +63,7 @@ function Platform(platformString) {
         this.name = platformString;
         if (platforms[this.name]) this.version = platforms[this.name].version;
     }
-    this.source = 'source' in platforms[this.name] ? platforms[this.name].source : 'npm';
+    this.source = (this.name in platforms && 'source' in platforms[this.name]) ?
platforms[this.name].source : 'npm';
 }
 
 // Returns a promise for the path to the lazy-loaded directory.


Mime
View raw message