Protection from external 'undefined'

This commit is contained in:
oleg8sh 2014-08-07 23:32:25 +04:00
parent 0ad9a7d57c
commit c4cd99b093

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