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 2012/04/06 03:20:42 UTC
[12/40] git commit: stub empty console.log in case it is called in
initializing code
stub empty console.log in case it is called in initializing code
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/8ae56c6a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/8ae56c6a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/8ae56c6a
Branch: refs/heads/master
Commit: 8ae56c6aa6e8be6de3b8d88b4454240885ffc099
Parents: af5a926
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Mar 30 15:47:25 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Mar 30 15:47:25 2012 -0700
----------------------------------------------------------------------
lib/cordova.js | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/8ae56c6a/lib/cordova.js
----------------------------------------------------------------------
diff --git a/lib/cordova.js b/lib/cordova.js
index ac55943..7cc27c1 100644
--- a/lib/cordova.js
+++ b/lib/cordova.js
@@ -75,6 +75,13 @@ function createEvent(type, data) {
return event;
}
+if(typeof window.console === "undefined")
+{
+ window.console = {
+ log:function(){}
+ };
+}
+
var cordova = {
define:define,
require:require,