Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit ff4f3a1

Browse files
author
Rafael Fragoso
committed
refactor(jQlite): Calling window before document
calling `window` before using `document` as instructed.
1 parent 576d348 commit ff4f3a1

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)