From: Tim Wood Date: Fri, 3 Feb 2012 18:18:10 +0000 (-0800) Subject: More docs on cloning #148 X-Git-Tag: 1.4.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0cc1fca24fb7d4428d3a161940f794d7dd0bf3a7;p=thirdparty%2Fmoment.git More docs on cloning #148 --- diff --git a/sitesrc/docs.jade b/sitesrc/docs.jade index 1a8f66ab0..70b60d902 100644 --- a/sitesrc/docs.jade +++ b/sitesrc/docs.jade @@ -360,9 +360,12 @@ block content h3 span Cloning p All moments are mutable. If you want a clone of a moment, you can do so explicitly or implicitly. + p Calling code moment() + | on a moment will clone it. pre var a = moment([2012]);\n | var b = moment(a); + | a.year(2000); | b.year(); // 2012 p Additionally, you can call code moment.fn.clone