[added] bound option to rewriteRange
ClosedPublic

Authored by appsforartists on Sep 21 2017, 10:15 PM.

Details

Summary

This is a simpler way of expressing rewriteRange(…).lowerBound(min(toStart, toEnd)).upperBound(max(toStart, toEnd)). It's especially useful in situations where toStart or toEnd is reactive, since it ensures the smaller value is used for the lower bound and the larger value is used for the upper bound.

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.
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptSep 21 2017, 10:15 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!Sep 21 2017, 10:18 PM
featherless accepted this revision.Oct 6 2017, 2:02 PM
This revision is now accepted and ready to land.Oct 6 2017, 2:02 PM
This revision was automatically updated to reflect the committed changes.