You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by bh...@apache.org on 2014/04/08 21:19:25 UTC

webworks commit: CB-6416 Ensure target dictionary exists in properties object

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 <bh...@blackberry.com>
Authored: Tue Apr 8 15:18:43 2014 -0400
Committer: Bryan Higgins <bh...@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) {