From cd08248e1e0c5bd1ec5e72a2fc6c29dcc26ce183 Mon Sep 17 00:00:00 2001 From: Gavin Steacy Date: Sat, 11 Oct 2014 19:43:42 +1100 Subject: [PATCH] Prevent creating property on global object --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index f5812eef..d0f46652 100644 --- a/mithril.js +++ b/mithril.js @@ -643,7 +643,7 @@ Mithril = m = new function app(window, undefined) { return deferred } function propify(promise) { - prop = m.prop() + var prop = m.prop() promise.then(prop) prop.then = function(resolve, reject) { return propify(promise.then(resolve, reject))