cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject spec commit: Revert "changed document.write to use document.createElement('script')"
Date Mon, 27 May 2013 19:48:06 GMT
Updated Branches:
  refs/heads/master 1435299df -> 4a6749bde


Revert "changed document.write to use document.createElement('script')"

This reverts commit 8b1fd7d49c278d43b34b4c041f1575a1a39a664d.

This is necessary because it causes rendering issues on some ICS
devices.


Project: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/commit/4a6749bd
Tree: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/tree/4a6749bd
Diff: http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/diff/4a6749bd

Branch: refs/heads/master
Commit: 4a6749bdeb3ed3ac3c6e287f7d499158ff642dfe
Parents: 1435299
Author: Max Woghiren <max.woghiren@gmail.com>
Authored: Mon May 27 15:47:01 2013 -0400
Committer: Max Woghiren <max.woghiren@gmail.com>
Committed: Mon May 27 15:47:01 2013 -0400

----------------------------------------------------------------------
 cordova-incl.js |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-mobile-spec/blob/4a6749bd/cordova-incl.js
----------------------------------------------------------------------
diff --git a/cordova-incl.js b/cordova-incl.js
index 458e10a..c624996 100644
--- a/cordova-incl.js
+++ b/cordova-incl.js
@@ -59,9 +59,7 @@ if (PLAT) {
 }
 
 if (!window._doNotWriteCordovaScript) {
-    var script = document.createElement("script");
-    script.src = cordovaPath;
-    document.head.appendChild(script);
+    document.write('<script type="text/javascript" charset="utf-8" src="' + cordovaPath
+ '"></script>');
 }
 
 function backHome() {


Mime
View raw message