You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by fi...@apache.org on 2013/02/18 19:44:39 UTC

[1/2] git commit: No need to inject webworks.js script anymore

No need to inject webworks.js script anymore


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/5b579165
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/5b579165
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/5b579165

Branch: refs/heads/master
Commit: 5b5791655af80840fae21075d1af8cadd355822c
Parents: 64e06c5
Author: Tim Kim <ti...@adobe.com>
Authored: Thu Jan 17 14:59:01 2013 -0800
Committer: Fil Maj <ma...@gmail.com>
Committed: Mon Feb 18 10:43:23 2013 -0800

----------------------------------------------------------------------
 src/metadata/blackberry_parser.js |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/5b579165/src/metadata/blackberry_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/blackberry_parser.js b/src/metadata/blackberry_parser.js
index 8d5a823..e10fa83 100644
--- a/src/metadata/blackberry_parser.js
+++ b/src/metadata/blackberry_parser.js
@@ -1,4 +1,3 @@
-
 /**
     Licensed to the Apache Software Foundation (ASF) under one
     or more contributor license agreements.  See the NOTICE file
@@ -119,14 +118,6 @@ module.exports.prototype = {
         shell.rm('-rf', platformWww);
         shell.mv(finalWww, platformWww);
 
-        // Add the webworks.js script file
-        // TODO: assumption that index.html is only file that needs the hot webworks script injection
-        // TODO: assumption that index.html is entry point to app. instead read <content> of project's www
-        var index = path.join(platformWww, 'index.html');
-        var contents = fs.readFileSync(index, 'utf-8');
-        contents = contents.replace(/<script type="text\/javascript" src="cordova\.js"><\/script>/, '<script type="text/javascript" src="js/webworks.js"></script><script type="text/javascript" src="cordova.js"></script>');
-        fs.writeFileSync(index, contents, 'utf-8');
-
         util.deleteSvnFolders(platformWww);
     },
     write_project_properties:function() {