Updated Branches:
  refs/heads/master d581fc913 -> 0e58060f0

[ios] route console methods to original console

Additional fix thanks to comment from agrieve.  The origConsole
variable will never be null, so the values of the various
original methods can be simplified.


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/0e58060f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/0e58060f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/0e58060f

Branch: refs/heads/master
Commit: 0e58060f07209c44b084fbde5b305768c05a511f
Parents: d581fc9
Author: Patrick Mueller <pmue...@apache.org>
Authored: Wed Sep 26 10:45:21 2012 -0400
Committer: Patrick Mueller <pmue...@apache.org>
Committed: Wed Sep 26 10:45:21 2012 -0400

----------------------------------------------------------------------
 lib/ios/plugin/ios/console.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/0e58060f/lib/ios/plugin/ios/console.js
----------------------------------------------------------------------
diff --git a/lib/ios/plugin/ios/console.js b/lib/ios/plugin/ios/console.js
index 98857c6..5073f31 100644
--- a/lib/ios/plugin/ios/console.js
+++ b/lib/ios/plugin/ios/console.js
@@ -65,9 +65,9 @@ function stringify(message) {
  */
 var origConsole = window.console || {}
 
-var origConsole_log   = origConsole ? origConsole.log   : function(){}
-var origConsole_warn  = origConsole ? origConsole.warn  : function(){}
-var origConsole_error = origConsole ? origConsole.error : function(){}
+var origConsole_log   = origConsole.log   || function(){}
+var origConsole_warn  = origConsole.warn  || function(){}
+var origConsole_error = origConsole.error || function(){}
 
 
 /**

Reply via email to