You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2013/05/18 01:14:55 UTC
[6/8] CB3307 Rename cordova-VERSION-.js -> cordova.js
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a3170845/example/www/cordova-current.js
----------------------------------------------------------------------
diff --git a/example/www/cordova-current.js b/example/www/cordova-current.js
deleted file mode 100644
index 48a27bb..0000000
--- a/example/www/cordova-current.js
+++ /dev/null
@@ -1,19 +0,0 @@
-
-(function(){
-
-var VERSION = '2.7.0',
- currentScript = 'cordova-' + VERSION + '.js',
- scripts = document.getElementsByTagName('script');
-
-for (var n = 0; n < scripts.length; n++) {
- if (scripts[n].src.indexOf('cordova-current.js') > -1) {
- var cordovaPath = scripts[n].src.replace('cordova-current.js', currentScript);
- var scriptElem = document.createElement("script");
- scriptElem.src = cordovaPath;
- document.head.appendChild(scriptElem);
- }
-}
-
-})();
-
-