Merge pull request #184 from oleg8sh/patch-1

Protection from external 'undefined'
This commit is contained in:
Leo Horie 2014-08-08 12:37:25 -04:00
commit 6edc8acff9

View file

@ -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)?\]/