Skip to content

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

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

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

Conversation

@riophae
Copy link

@riophae riophae commented Feb 23, 2016

2016-02-23 12 19 47

@henryruhs
Copy link

henryruhs commented Oct 28, 2018

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