incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [12/40] git commit: stub empty console.log in case it is called in initializing code
Date Fri, 06 Apr 2012 01:20:42 GMT
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 <purplecabbage@gmail.com>
Authored: Fri Mar 30 15:47:25 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@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,


Mime
View raw message