Do not use window when it is not available

This commit is contained in:
Florian Albertz 2015-11-07 14:37:29 +01:00
parent df114a4ee2
commit 814b5035ee
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
(function (global, factory) {
"use strict"
/* eslint-disable no-undef */
var m = factory(window)
var m = factory(typeof window !== "undefined" ? window : {})
if (typeof module === "object" && module != null && module.exports) {
module.exports = m
} else if (typeof define === "function" && define.amd) {

2
mithril.min.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long