Skip to content

Commit

Permalink
Fix for IE11 issues
Browse files Browse the repository at this point in the history
Unlike other browsers, IE does not check property values when redefining
non-configurable properties, and simply throws whether they're the same
or not. This sets configurable: true early, since the list overwrites
some of its symbols during construction.
  • Loading branch information
thomaswilburn committed Aug 30, 2018
1 parent d8d7131 commit 2e46c6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions list/list.js
Expand Up @@ -341,6 +341,7 @@ var eventsProtoSymbols = ("getOwnPropertySymbols" in Object) ?

eventsProtoSymbols.forEach(function(sym) {
Object.defineProperty(DefineList.prototype, sym, {
configurable: true,
enumerable:false,
value: define.eventsProto[sym],
writable: true
Expand Down

0 comments on commit 2e46c6a

Please sign in to comment.