put error logging inside the curried callback

pull/1174/head
Justin Richer 2017-01-05 17:38:03 -05:00
parent 0d162b1423
commit 9b715f9632
1 changed files with 4 additions and 4 deletions

View File

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