-
Notifications
You must be signed in to change notification settings - Fork 160
Replace PointerMap with potentially-sparse-array-based Map polyfill #190
Conversation
var USE_MAP = window.Map && window.Map.prototype.forEach; | ||
var POINTERS_FN = function() { return this.size; }; | ||
var USE_MAP = window.Map && window.Map.prototype.forEach && | ||
!Object.getOwnPropertyDescriptor(Map.prototype,'size').value; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is this guarding against?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's silly, why would we care about something that was fixed almost three years ago? Remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's silly, why would we care about something that was fixed almost three years ago?
Why check window.Map.prototype.forEach
then?
@stuartpb Are you able to attend our meeting today? It's on IRC at noon ET (#jquery-meeting on freenode). |
@scottgonzalez Sure, I can stay up for a few more hours. |
Is there a reason not to just use an object instead of an array? |
…y in IE Edge Use native `PointerEvent` if supported. fix #1066 Optimise PointerMap class: use native Map class if supported (port of jquery-archive/PEP#190).
…y in IE Edge Use native `PointerEvent` if supported. fix #1066 Optimise PointerMap class: use native Map class if supported (port of jquery-archive/PEP#190).
Alternative to gh-189