Skip to content

Commit

Permalink
Restore IE11 support (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
zsavajji authored and fregante committed May 25, 2019
1 parent 1a88024 commit 45bb0fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ function selectAll(selectors: string, baseElements?: BaseElements): Element[] {

// Can be: select.all('selectors') or select.all('selectors', singleElementOrDocument)
if (!baseElements || isQueryable(baseElements)) {
return new Array(...(baseElements || document).querySelectorAll(selectors));
const elements = (baseElements || document).querySelectorAll(selectors);
return Array.apply(null, elements as any) as Element[];
}

const all = [];
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"envs": "browser",
"rules": {
"valid-jsdoc": 0,
"prefer-spread": 0,
"prefer-arrow-callback": 0,
"@typescript-eslint/prefer-for-of": 0
}
Expand Down

0 comments on commit 45bb0fc

Please sign in to comment.