]> git.ipfire.org Git - thirdparty/moment.git/commit
Fixed cloning a modified duration 1243/head
authorIskren Chernev <iskren.chernev@gmail.com>
Thu, 31 Oct 2013 18:30:32 +0000 (11:30 -0700)
committerIskren Chernev <iskren.chernev@gmail.com>
Thu, 31 Oct 2013 18:32:10 +0000 (11:32 -0700)
commit925762da0475af3fbf475cf3c3705afdff3e5f40
tree49eafa2d49dea8f042402b329115031d220ba393
parentca3c88987ee977df1299ea2fd9b492d3b5aa053d
Fixed cloning a modified duration

Storing the _input for creating a duration doesn't work for cloning when the
original duration is modified, because input no longer corresponds to the new
duration. Instead use the ms, days and month values which uniquely identify
a duration.

This also happens to fix #1242
moment.js
test/moment/duration.js