Merge pull request #2195 from yurydelendik/no-print-in-log

Removes usage of print as log
This commit is contained in:
Brendan Dahl 2012-10-04 09:24:42 -07:00
commit 1c3195375b
2 changed files with 1 additions and 2 deletions

View File

@ -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() {
};

View File

@ -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) {