chat client: apply log arguments

This commit is contained in:
Felix Niklas 2015-11-13 11:13:02 +01:00
parent 0912e0e42a
commit ecb1f94c02
3 changed files with 5 additions and 3 deletions

View file

@ -50,7 +50,8 @@ do($ = window.jQuery, window) ->
log: (level, string...) => log: (level, string...) =>
return if !@debug && level is 'debug' return if !@debug && level is 'debug'
console.log level, string string.unshift(level)
console.log.apply console, string
view: (name) => view: (name) =>
return (options) => return (options) =>

View file

@ -77,7 +77,8 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
if (!this.debug && level === 'debug') { if (!this.debug && level === 'debug') {
return; return;
} }
return console.log(level, string); string.unshift(level);
return console.log.apply(console, string);
}; };
ZammadChat.prototype.view = function(name) { ZammadChat.prototype.view = function(name) {

File diff suppressed because one or more lines are too long