Unverified Commit 17f61e04 authored by Joel Copi's avatar Joel Copi Committed by GitHub
Browse files

fixed type checking

Changed type check from HTML Element to be more general
parent a7d48b89
......@@ -32,7 +32,7 @@
switch (true) {
/* the function handles input differently based on type */
case (selector instanceof HTMLElement):
case (selector instanceof HTMLElement || selector instanceof DocumentFragment || selector instanceof Element):
this[this.length++] = selector;
break;
case (selector instanceof String || typeof selector == "string"):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment