You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/10/17 00:53:08 UTC
[15/16] git commit: CB-5066: fixed issue with visual elements not
being referenced correctly
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 <st...@gmail.com>
Authored: Wed Oct 16 15:25:02 2013 -0700
Committer: Steven Gill <st...@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) {