use bracket syntax for reserved keyword

This commit is contained in:
Leo Horie 2015-06-29 09:22:20 -04:00
parent 505d7b930d
commit 8da643c13f

View file

@ -866,7 +866,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);
prop["catch"] = prop.then.bind(null, null);
return prop;
}
//Promiz.mithril.js | Zolmeister | MIT