From c4cd99b0932019ffbcaa850f915a372bb7e31206 Mon Sep 17 00:00:00 2001 From: oleg8sh Date: Thu, 7 Aug 2014 23:32:25 +0400 Subject: [PATCH] Protection from external 'undefined' --- mithril.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril.js b/mithril.js index f36a54bb..22758864 100644 --- a/mithril.js +++ b/mithril.js @@ -1,4 +1,4 @@ -Mithril = m = new function app(window) { +Mithril = m = new function app(window, undefined) { var type = {}.toString var parser = /(?:(^|#|\.)([^#\.\[\]]+))|(\[.+?\])/g, attrParser = /\[(.+?)(?:=("|'|)(.*?)\2)?\]/