put error logging inside the curried callback
parent
0d162b1423
commit
9b715f9632
|
@ -375,14 +375,14 @@ var ErrorHandlerView = Backbone.View.extend({
|
|||
message = {};
|
||||
}
|
||||
|
||||
if (message.log) {
|
||||
console.log(message.log);
|
||||
}
|
||||
|
||||
var _self = this;
|
||||
|
||||
return function(model, response, options) {
|
||||
|
||||
if (message.log) {
|
||||
console.log(message.log);
|
||||
}
|
||||
|
||||
_self.showErrorMessage(
|
||||
_self.headerTemplate({message: message, model: model, response: response, options: options}),
|
||||
_self.template({message: message, model: model, response: response, options: options})
|
||||
|
|
Loading…
Reference in New Issue