Skip to content

fix: calling Array.prototype.slice() on NodeList throws on IE8#10

Open
riophae wants to merge 1 commit into
bevacqua:masterfrom
riophae:fix-ie8
Open

fix: calling Array.prototype.slice() on NodeList throws on IE8#10
riophae wants to merge 1 commit into
bevacqua:masterfrom
riophae:fix-ie8

Conversation

@riophae

@riophae riophae commented Feb 23, 2016

Copy link
Copy Markdown

2016-02-23 12 19 47

@henryruhs

henryruhs commented Oct 28, 2018

Copy link
Copy Markdown

Use a polyfill instead of downgrading the codebase to support a god damn old IE:

if (window.NodeList && !NodeList.prototype.forEach) {
	NodeList.prototype.forEach = Array.prototype.forEach;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants