From f7efd9a11ab1f84e66bcb98bf63f05b027ae4fe5 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 31 May 2013 13:05:23 -0400 Subject: [PATCH] #585 - add hostname check for cross-origin warning. --- .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../backbone/bower_components/todomvc-common/base.js | 4 ++++ .../canjs/bower_components/todomvc-common/base.js | 4 ++++ .../closure/bower_components/todomvc-common/base.js | 4 ++++ .../dart/web/bower_components/todomvc-common/base.js | 4 ++++ .../dojo/bower_components/todomvc-common/base.js | 4 ++++ .../emberjs/bower_components/todomvc-common/base.js | 4 ++++ .../gwt/bower_components/todomvc-common/base.js | 4 ++++ .../jquery/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../maria/bower_components/todomvc-common/base.js | 4 ++++ .../spine/bower_components/todomvc-common/base.js | 4 ++++ .../yui/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../flight/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../batman/bower_components/todomvc-common/base.js | 4 ++++ .../cujo/bower_components/todomvc-common/base.js | 4 ++++ .../derby/public/components/todomvc-common/base.js | 4 ++++ .../dermis/bower_components/todomvc-common/base.js | 4 ++++ .../dijon/bower_components/todomvc-common/base.js | 4 ++++ .../webapp/bower_components/todomvc-common/base.js | 4 ++++ .../epitome/bower_components/todomvc-common/base.js | 4 ++++ .../extjs/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../kendo/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../client/bower_components/todomvc-common/base.js | 4 ++++ .../montage/bower_components/todomvc-common/base.js | 4 ++++ .../o_O/bower_components/todomvc-common/base.js | 4 ++++ .../olives/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../puremvc/bower_components/todomvc-common/base.js | 4 ++++ .../rappidjs/bower_components/todomvc-common/base.js | 4 ++++ .../sammyjs/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../client/code/libs/todomvc-common/base.js | 4 ++++ .../somajs/components/todomvc-common/base.js | 4 ++++ .../somajs/components/todomvc-common/bower.json | 12 ------------ .../stapes/bower_components/todomvc-common/base.js | 4 ++++ .../thorax/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../somajs_require/components/todomvc-common/base.js | 4 ++++ .../components/todomvc-common/bower.json | 12 ------------ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ template/bower_components/todomvc-common/base.js | 4 ++++ .../bower_components/todomvc-common/base.js | 4 ++++ 61 files changed, 236 insertions(+), 24 deletions(-) delete mode 100644 labs/architecture-examples/somajs/components/todomvc-common/bower.json delete mode 100644 labs/dependency-examples/somajs_require/components/todomvc-common/bower.json diff --git a/architecture-examples/agilityjs/bower_components/todomvc-common/base.js b/architecture-examples/agilityjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/agilityjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/agilityjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js b/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js +++ b/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/angularjs/bower_components/todomvc-common/base.js b/architecture-examples/angularjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/angularjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/angularjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/backbone/bower_components/todomvc-common/base.js b/architecture-examples/backbone/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/backbone/bower_components/todomvc-common/base.js +++ b/architecture-examples/backbone/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/canjs/bower_components/todomvc-common/base.js b/architecture-examples/canjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/canjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/canjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/closure/bower_components/todomvc-common/base.js b/architecture-examples/closure/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/closure/bower_components/todomvc-common/base.js +++ b/architecture-examples/closure/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/dart/web/bower_components/todomvc-common/base.js b/architecture-examples/dart/web/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/dart/web/bower_components/todomvc-common/base.js +++ b/architecture-examples/dart/web/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/dojo/bower_components/todomvc-common/base.js b/architecture-examples/dojo/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/dojo/bower_components/todomvc-common/base.js +++ b/architecture-examples/dojo/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/emberjs/bower_components/todomvc-common/base.js b/architecture-examples/emberjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/emberjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/emberjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/gwt/bower_components/todomvc-common/base.js b/architecture-examples/gwt/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/gwt/bower_components/todomvc-common/base.js +++ b/architecture-examples/gwt/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/jquery/bower_components/todomvc-common/base.js b/architecture-examples/jquery/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/jquery/bower_components/todomvc-common/base.js +++ b/architecture-examples/jquery/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/knockback/bower_components/todomvc-common/base.js b/architecture-examples/knockback/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/knockback/bower_components/todomvc-common/base.js +++ b/architecture-examples/knockback/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js b/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/maria/bower_components/todomvc-common/base.js b/architecture-examples/maria/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/maria/bower_components/todomvc-common/base.js +++ b/architecture-examples/maria/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/spine/bower_components/todomvc-common/base.js b/architecture-examples/spine/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/spine/bower_components/todomvc-common/base.js +++ b/architecture-examples/spine/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/architecture-examples/yui/bower_components/todomvc-common/base.js b/architecture-examples/yui/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/architecture-examples/yui/bower_components/todomvc-common/base.js +++ b/architecture-examples/yui/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/dependency-examples/backbone_require/bower_components/todomvc-common/base.js b/dependency-examples/backbone_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/dependency-examples/backbone_require/bower_components/todomvc-common/base.js +++ b/dependency-examples/backbone_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/dependency-examples/flight/bower_components/todomvc-common/base.js b/dependency-examples/flight/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/dependency-examples/flight/bower_components/todomvc-common/base.js +++ b/dependency-examples/flight/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js b/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js b/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js b/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/batman/bower_components/todomvc-common/base.js b/labs/architecture-examples/batman/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/batman/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/batman/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js b/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/derby/public/components/todomvc-common/base.js b/labs/architecture-examples/derby/public/components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/derby/public/components/todomvc-common/base.js +++ b/labs/architecture-examples/derby/public/components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js b/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js b/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js b/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js b/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js b/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js b/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js b/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/montage/bower_components/todomvc-common/base.js b/labs/architecture-examples/montage/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/montage/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/montage/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js b/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/olives/bower_components/todomvc-common/base.js b/labs/architecture-examples/olives/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/olives/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/olives/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js b/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js b/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js b/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js +++ b/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/somajs/components/todomvc-common/base.js b/labs/architecture-examples/somajs/components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/somajs/components/todomvc-common/base.js +++ b/labs/architecture-examples/somajs/components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/somajs/components/todomvc-common/bower.json b/labs/architecture-examples/somajs/components/todomvc-common/bower.json deleted file mode 100644 index 32e001e3c4..0000000000 --- a/labs/architecture-examples/somajs/components/todomvc-common/bower.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "todomvc-common", - "version": "0.1.7", - "gitHead": "42348a8146fe0be847b93cd98664813fbae62be9", - "_id": "todomvc-common@0.1.7", - "readme": "ERROR: No README.md file found!", - "description": "ERROR: No README.md file found!", - "repository": { - "type": "git", - "url": "git://github.com/tastejs/todomvc-common.git" - } -} \ No newline at end of file diff --git a/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js b/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js b/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js b/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js b/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js b/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js b/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/somajs_require/components/todomvc-common/base.js b/labs/dependency-examples/somajs_require/components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/somajs_require/components/todomvc-common/base.js +++ b/labs/dependency-examples/somajs_require/components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/somajs_require/components/todomvc-common/bower.json b/labs/dependency-examples/somajs_require/components/todomvc-common/bower.json deleted file mode 100644 index 32e001e3c4..0000000000 --- a/labs/dependency-examples/somajs_require/components/todomvc-common/bower.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "todomvc-common", - "version": "0.1.7", - "gitHead": "42348a8146fe0be847b93cd98664813fbae62be9", - "_id": "todomvc-common@0.1.7", - "readme": "ERROR: No README.md file found!", - "description": "ERROR: No README.md file found!", - "repository": { - "type": "git", - "url": "git://github.com/tastejs/todomvc-common.git" - } -} \ No newline at end of file diff --git a/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js b/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/labs/dependency-examples/troopjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/troopjs_require/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/labs/dependency-examples/troopjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/troopjs_require/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/template/bower_components/todomvc-common/base.js b/template/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/template/bower_components/todomvc-common/base.js +++ b/template/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true); diff --git a/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js b/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js index 1288980675..8e5faa80b8 100644 --- a/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js +++ b/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js @@ -136,6 +136,10 @@ } function getFile(file, callback) { + if (!location.host) { + return; + } + var xhr = new XMLHttpRequest(); xhr.open('GET', findRoot() + file, true);