]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Merge pull request #1264 from ichernev/bugfix/deprecated-export-static-methods
authorIsaac Cambron <isaac@isaaccambron.com>
Fri, 22 Nov 2013 18:23:08 +0000 (10:23 -0800)
committerIsaac Cambron <isaac@isaaccambron.com>
Fri, 22 Nov 2013 18:23:08 +0000 (10:23 -0800)
Add all moment static functions to deprecated global export

1  2 
moment.js

diff --cc moment.js
index f343687e0b8794bb6ca539bca44d0dc6abcea4a7,641b1b23363264124d45a67fdaa169aa559e29a0..3df90f0ce75516f17be67e56688503080d9f1bf6
+++ b/moment.js
                  }
                  return local_moment.apply(null, arguments);
              };
+             extend(this.moment, local_moment);
          } else {
 -            this['moment'] = moment;
 +            global['moment'] = moment;
          }
      }