actually fix error from promise branch merge

This commit is contained in:
Leo Horie 2014-09-19 00:28:30 -04:00
parent a73f9cdd3a
commit 153d2384c8
2 changed files with 1 additions and 6 deletions

View file

@ -762,7 +762,7 @@ Mithril = m = new function app(window, undefined) {
}
}
m.deferred.onerror = function(e) {
if (type.call(e) == "[object Error]" && !e.constructor.toString().match(/ Error/)) throw e
if (type(e) == "[object Error]" && !e.constructor.toString().match(/ Error/)) throw e
}
m.sync = function(args) {