chat client: apply log arguments
This commit is contained in:
parent
0912e0e42a
commit
ecb1f94c02
3 changed files with 5 additions and 3 deletions
|
@ -50,7 +50,8 @@ do($ = window.jQuery, window) ->
|
|||
|
||||
log: (level, string...) =>
|
||||
return if !@debug && level is 'debug'
|
||||
console.log level, string
|
||||
string.unshift(level)
|
||||
console.log.apply console, string
|
||||
|
||||
view: (name) =>
|
||||
return (options) =>
|
||||
|
|
|
@ -77,7 +77,8 @@ var bind = function(fn, me){ return function(){ return fn.apply(me, arguments);
|
|||
if (!this.debug && level === 'debug') {
|
||||
return;
|
||||
}
|
||||
return console.log(level, string);
|
||||
string.unshift(level);
|
||||
return console.log.apply(console, string);
|
||||
};
|
||||
|
||||
ZammadChat.prototype.view = function(name) {
|
||||
|
|
2
public/assets/chat/chat.min.js
vendored
2
public/assets/chat/chat.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue