Fixed m.request initialValue tests

This commit is contained in:
Barney 2014-11-10 15:32:31 +00:00
parent 71a6321c46
commit b5de0c2b4d
3 changed files with 143 additions and 75 deletions

View file

@ -949,7 +949,7 @@ Mithril = m = new function app(window, undefined) {
if (xhrOptions.background !== true) m.endComputation()
}
ajax(xhrOptions)
deferred.promise(xhrOptions.default)
deferred.promise(xhrOptions.initialValue)
return deferred.promise
}