cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject webworks commit: CB-6416 Ensure target dictionary exists in properties object
Date Tue, 08 Apr 2014 19:19:25 GMT
Repository: cordova-blackberry
Updated Branches:
  refs/heads/master 5a3f7695c -> 411ead992


CB-6416 Ensure target dictionary exists in properties object


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

Branch: refs/heads/master
Commit: 411ead992c2c04ccc2843ba378ae0158686fa5f6
Parents: 5a3f769
Author: Bryan Higgins <bhiggins@blackberry.com>
Authored: Tue Apr 8 15:18:43 2014 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Tue Apr 8 15:18:43 2014 -0400

----------------------------------------------------------------------
 blackberry10/bin/lib/utils.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/411ead99/blackberry10/bin/lib/utils.js
----------------------------------------------------------------------
diff --git a/blackberry10/bin/lib/utils.js b/blackberry10/bin/lib/utils.js
index b0e1464..b05e3d7 100644
--- a/blackberry10/bin/lib/utils.js
+++ b/blackberry10/bin/lib/utils.js
@@ -301,7 +301,11 @@ _self = {
     },
 
     getProperties: function () {
-        return require(_self.getPropertiesFilePath());
+        var props =  require(_self.getPropertiesFilePath());
+        if (!props.targets) {
+            props.targets = {};
+        }
+        return props;
     },
 
     writeToPropertiesFile: function (data) {


Mime
View raw message