From 1e5bc12664865f011354de71530027babb8bd0fc Mon Sep 17 00:00:00 2001 From: Duc Ng Date: Sun, 24 Jan 2016 10:27:06 -0800 Subject: [PATCH] [fixed] use window.HTMLElement instead of HTMLElement so we can use with jsdom --- src/element.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/element.js b/src/element.js index 9e83df3..b6b70ec 100644 --- a/src/element.js +++ b/src/element.js @@ -56,7 +56,7 @@ Object.assign($.fn, { intoDocument = false } - if (mountPoint && !(mountPoint instanceof HTMLElement)) { + if (mountPoint && !(mountPoint instanceof window.HTMLElement)) { context = mountPoint mountPoint = null }