Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 389ecf4

Browse files
author
Rafael Fragoso
committedOct 10, 2017
refactor(jQlite): call window when using document
call `window` when using `document` as instructed
1 parent 576d348 commit 389ecf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/jqLite.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ function JQLite(element) {
284284
}
285285
if (!(this instanceof JQLite)) {
286286
if (argIsString && element.charAt(0) !== '<') {
287-
return new JQLite(document.querySelector(element));
287+
return new JQLite(window.document.querySelector(element));
288288
}
289289
return new JQLite(element);
290290
}

0 commit comments

Comments
 (0)
This repository has been archived.