Comparing version 0.1.10 to 0.1.11
@@ -557,3 +557,10 @@ var path = require('path'), | ||
var xml = fs.readFileSync(viewFile); | ||
var doc = new DOMParser().parseFromString('<root>' + String(xml) + '</root>'); | ||
var doc = new DOMParser().parseFromString(String(xml)); | ||
// Give our document the <Alloy> root element if it doesn't already have one | ||
if (doc.documentElement.nodeName !== 'Alloy') { | ||
var tmpDoc = new DOMParser().parseFromString('<Alloy></Alloy>'); | ||
tmpDoc.documentElement.appendChild(doc.documentElement); | ||
doc = tmpDoc; | ||
} | ||
var docRoot = doc.documentElement; | ||
@@ -560,0 +567,0 @@ var id = viewid || doc.documentElement.getAttribute('id') || viewName; |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": "Appcelerator, Inc. <info@appcelerator.com>", | ||
@@ -19,0 +19,0 @@ "maintainers": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
859322
14206