Browse Source

Removes usage of print as log

Yury Delendik 13 years ago
parent
commit
bc19b5581e
  1. 2
      src/util.js
  2. 1
      src/worker.js

2
src/util.js

@ -22,8 +22,6 @@ @@ -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() {
};

1
src/worker.js

@ -35,6 +35,7 @@ function MessageHandler(name, comObj) { @@ -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) {

Loading…
Cancel
Save