Merge pull request #454 from TheThing/next
propify: Fix chaining to return original m.prop
This commit is contained in:
commit
550fe9871a
2 changed files with 9 additions and 1 deletions
|
|
@ -743,7 +743,8 @@ var m = (function app(window, undefined) {
|
|||
var prop = m.prop();
|
||||
promise.then(prop);
|
||||
prop.then = function(resolve, reject) {
|
||||
return propify(promise.then(resolve, reject))
|
||||
promise = promise.then(resolve, reject).then(prop);
|
||||
return prop;
|
||||
};
|
||||
return prop
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue