From bc19b5581e9704e900780e3acf5ae3e0f2e6d00d Mon Sep 17 00:00:00 2001 From: Yury Delendik Date: Thu, 4 Oct 2012 10:01:53 -0500 Subject: [PATCH] Removes usage of print as log --- src/util.js | 2 -- src/worker.js | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index 47d9edfc3..e9e57cac6 100644 --- a/src/util.js +++ b/src/util.js @@ -22,8 +22,6 @@ var log = (function() { if ('console' in globalScope && 'log' in globalScope['console']) { return globalScope['console']['log'].bind(globalScope['console']); - } else if ('print' in globalScope) { - return globalScope['print'].bind(globalScope); } else { return function nop() { }; diff --git a/src/worker.js b/src/worker.js index d0c39e865..a5b323bf5 100644 --- a/src/worker.js +++ b/src/worker.js @@ -35,6 +35,7 @@ function MessageHandler(name, comObj) { }]; } else { ah['console_error'] = [function ahConsoleError(data) { + log.apply(null, data); }]; } ah['_warn'] = [function ah_Warn(data) {