Add catch to promise-like objects
This commit is contained in:
parent
a3cc70863c
commit
dfb37fec9c
1 changed files with 1 additions and 0 deletions
|
|
@ -859,6 +859,7 @@ var m = (function app(window, undefined) {
|
|||
prop.then = function(resolve, reject) {
|
||||
return propify(promise.then(resolve, reject), initialValue)
|
||||
};
|
||||
prop.catch = prop.then.bind(null, null)
|
||||
return prop
|
||||
}
|
||||
//Promiz.mithril.js | Zolmeister | MIT
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue