You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by be...@apache.org on 2013/05/25 02:15:28 UTC

[06/21] CB-3444 rename cordova.js, no more version in file name

http://git-wip-us.apache.org/repos/asf/cordova-wp7/blob/90bed6f8/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);
-	}
-}
-
-})();
-
-