diff --git a/mithril.js b/mithril.js index bbed114e..b98d933a 100644 --- a/mithril.js +++ b/mithril.js @@ -10,7 +10,7 @@ global.m = m } /* eslint-enable no-undef */ -})(typeof window !== "undefined" ? window : {}, function (global, undefined) { // eslint-disable-line +})(typeof window !== "undefined" ? window : this, function (global, undefined) { // eslint-disable-line "use strict" m.version = function () { diff --git a/test/mithril.trust.js b/test/mithril.trust.js index 71463edd..17727a0d 100644 --- a/test/mithril.trust.js +++ b/test/mithril.trust.js @@ -41,7 +41,7 @@ describe("m.trust()", function () { expect(root.childNodes[3].tagName).to.equal("I") }) - // TODO: this currently fails. + // TODO: m.trust's contents are having their tags stripped. xit("works with mixed trusted content in td", function () { var root = document.createElement("table") root.appendChild(root = document.createElement("tr"))