Skip to content
This repository has been archived by the owner on Sep 20, 2018. It is now read-only.

Commit

Permalink
[fixed] use window.HTMLElement instead of HTMLElement so we can use w…
Browse files Browse the repository at this point in the history
…ith jsdom
  • Loading branch information
ngduc committed Jan 24, 2016
1 parent bddf064 commit 1e5bc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/element.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Object.assign($.fn, {
intoDocument = false
}

if (mountPoint && !(mountPoint instanceof HTMLElement)) {
if (mountPoint && !(mountPoint instanceof window.HTMLElement)) {
context = mountPoint
mountPoint = null
}
Expand Down

0 comments on commit 1e5bc12

Please sign in to comment.