]> git.ipfire.org Git - thirdparty/moment.git/commit
Implement Moment, Duration, and Locale prototypes with immutable API
authorLucas Sanders <butterflyhug@google.com>
Sun, 30 Oct 2016 18:27:54 +0000 (14:27 -0400)
committerLucas Sanders <butterflyhug@google.com>
Wed, 22 Mar 2017 10:12:27 +0000 (06:12 -0400)
commit40b47fd62b5a7c87fdfb3255df49959ea51e0d1d
tree52bd8ee8818a8358f043fffdd59e49d1267adc92
parentb8a7fc310eb3625e83fc0c8f1ea2840fa83c7378
Implement Moment, Duration, and Locale prototypes with immutable API

This is done by wrapping all mutation methods with a function that clones
a new object before the mutation algorithm.
src/lib/duration/prototype.js
src/lib/locale/constructor.js
src/lib/locale/prototype.js
src/lib/moment/locale.js
src/lib/moment/prototype.js
src/lib/utils/wrap.js [new file with mode: 0644]
src/moment.js