cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [15/16] git commit: CB-5066: fixed issue with visual elements not being referenced correctly
Date Wed, 16 Oct 2013 22:53:08 GMT
CB-5066: fixed issue with visual elements not being referenced correctly


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

Branch: refs/heads/master
Commit: 3fc980b7e56dcc94b253aa2b38359af6eae55037
Parents: 7efbd92
Author: Steven Gill <stevengill97@gmail.com>
Authored: Wed Oct 16 15:25:02 2013 -0700
Committer: Steven Gill <stevengill97@gmail.com>
Committed: Wed Oct 16 15:25:02 2013 -0700

----------------------------------------------------------------------
 src/metadata/windows8_parser.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/3fc980b7/src/metadata/windows8_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/windows8_parser.js b/src/metadata/windows8_parser.js
index 6c5049d..196313b 100644
--- a/src/metadata/windows8_parser.js
+++ b/src/metadata/windows8_parser.js
@@ -99,7 +99,10 @@ module.exports.prototype = {
                 app['attrib']['Id'] = name;
             }
 
-            var visualElems = app['VisualElements'];
+            if(app['_children'][0]['tag'] == 'VisualElements'){
+                var visualElems = app['_children'][0];
+            }
+
             if(visualElems) {
                 var displayName = visualElems['attrib']['DisplayName'];
                 if(displayName != name) {


Mime
View raw message