Merge pull request #2195 from yurydelendik/no-print-in-log
Removes usage of print as log
This commit is contained in:
commit
1c3195375b
@ -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() {
|
||||
};
|
||||
|
@ -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…
x
Reference in New Issue
Block a user