From 8da643c13f7fab2e00f6e3dded2b65f50457203f Mon Sep 17 00:00:00 2001 From: Leo Horie Date: Mon, 29 Jun 2015 09:22:20 -0400 Subject: [PATCH] use bracket syntax for reserved keyword --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index eba9b40c..e9592f99 100644 --- a/mithril.js +++ b/mithril.js @@ -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