[refactored] convertTouchEventsToPointerEvents to use Array.from's map
ClosedPublic

Authored by appsforartists on Apr 28 2017, 6:12 PM.

Details

Summary

Array.from takes a transform function as its separate argument - this removes the need to call map separately, and eliminates an array allocation on every event.

Diff Detail

Repository
R13 material-motion/material-motion-js
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
appsforartists created this revision.Apr 28 2017, 6:12 PM
Restricted Application completed building Restricted Buildable.Apr 28 2017, 6:12 PM
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptApr 28 2017, 6:12 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O3: Material JavaScript platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
Restricted Application failed to build Restricted Buildable!Apr 28 2017, 6:14 PM
markwei accepted this revision.Apr 28 2017, 6:37 PM
This revision is now accepted and ready to land.Apr 28 2017, 6:37 PM
This revision was automatically updated to reflect the committed changes.