diff options
author | hwc487 | 2012-03-23 13:49:03 -0700 |
---|---|---|
committer | hwc487 | 2012-03-23 13:49:03 -0700 |
commit | 51478dbad8290f55eeab9efdfb8c2cbe24b12b10 (patch) | |
tree | 1524c53d027d1f2f8cbb759f61e4d73b52b00481 /node_modules/montage/ui/template.js | |
parent | 31e924e1b8b8da8342b3ff2341c8284915486c0b (diff) | |
parent | bc8b0c17023ddea6d77150694a777e104ef99cbc (diff) | |
download | ninja-51478dbad8290f55eeab9efdfb8c2cbe24b12b10.tar.gz |
Merge branch 'montage-integration' of github.com:Motorola-Mobility/ninja-internal into integration
Conflicts:
js/io/system/ninjalibrary.json
Diffstat (limited to 'node_modules/montage/ui/template.js')
-rwxr-xr-x | node_modules/montage/ui/template.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/node_modules/montage/ui/template.js b/node_modules/montage/ui/template.js index c6589b35..210d8cb7 100755 --- a/node_modules/montage/ui/template.js +++ b/node_modules/montage/ui/template.js | |||
@@ -438,7 +438,7 @@ var Template = exports.Template = Montage.create(Montage, /** @lends module:mont | |||
438 | 438 | ||
439 | for (var i = 0, cssTag; (cssTag = cssTags[i]); i++) { | 439 | for (var i = 0, cssTag; (cssTag = cssTags[i]); i++) { |
440 | if ((url = cssTag.getAttribute("href"))) { | 440 | if ((url = cssTag.getAttribute("href"))) { |
441 | if (! /^http:\/\/|^\//.test(url)) { // TODO: look into base links... | 441 | if (! /^https?:\/\/|^\//.test(url)) { // TODO: look into base links... |
442 | url = rootUrl + url; | 442 | url = rootUrl + url; |
443 | } | 443 | } |
444 | 444 | ||
@@ -547,7 +547,7 @@ var Template = exports.Template = Montage.create(Montage, /** @lends module:mont | |||
547 | src = script.getAttribute("src"); | 547 | src = script.getAttribute("src"); |
548 | scriptNode = doc.importNode(script, true); | 548 | scriptNode = doc.importNode(script, true); |
549 | if (src) { | 549 | if (src) { |
550 | if (! /^http:\/\/|^\//.test(src)) { // TODO: look into base links... | 550 | if (! /^https?:\/\/|^\//.test(src)) { // TODO: look into base links... |
551 | scriptNode.src = src = rootUrl + src; | 551 | scriptNode.src = src = rootUrl + src; |
552 | } | 552 | } |
553 | if (src in externalScriptsLoaded) continue; | 553 | if (src in externalScriptsLoaded) continue; |
@@ -688,7 +688,7 @@ var Template = exports.Template = Montage.create(Montage, /** @lends module:mont | |||
688 | url = link.getAttribute("href"), | 688 | url = link.getAttribute("href"), |
689 | rootUrl = this._rootUrl ? this._rootUrl[0] : ""; | 689 | rootUrl = this._rootUrl ? this._rootUrl[0] : ""; |
690 | 690 | ||
691 | if (! /^http:\/\/|^\//.test(url)) { | 691 | if (! /^https?:\/\/|^\//.test(url)) { |
692 | url = rootUrl + url; | 692 | url = rootUrl + url; |
693 | } | 693 | } |
694 | 694 | ||