]> git.ipfire.org Git - thirdparty/moment.git/commit
fix durations not being cloned properly 863/head
authorFraser Tweedale <frase@frase.id.au>
Thu, 20 Jun 2013 08:58:35 +0000 (18:58 +1000)
committerFraser Tweedale <frase@frase.id.au>
Mon, 24 Jun 2013 06:29:27 +0000 (16:29 +1000)
commitb864420eab59b45dde8a4b9d33f9b6f81fc7b9b0
treed3755c5acbf6e13e0e3175bea03dfe5cae37a669
parentfb05577991e8a95f5011258c221abc99648f92ea
fix durations not being cloned properly

``moment.duration`` does not return an equivalent Duration for all
inputs.  Add a test for this and fix the issue by reusing the
Duration's constructor argument.
moment.js
test/moment/duration.js