Merge pull request #835 from PaulAvery/next

Do not use `window` when it is not available
This commit is contained in:
Leo Horie 2015-11-12 22:47:33 -05:00
commit 0b4ec86221
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
void (function (global, factory) { // eslint-disable-line
"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