cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [6/8] CB3307 Rename cordova-VERSION-.js -> cordova.js
Date Fri, 17 May 2013 23:14:55 GMT
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);
-	}
-}
-
-})();
-
-


Mime
View raw message