]> git.ipfire.org Git - thirdparty/moment.git/commit
getLangDefinition will now automatically load lang 332/head
authorRocky Meza <rocky@fusionbox.com>
Mon, 11 Jun 2012 17:23:53 +0000 (11:23 -0600)
committerRocky Meza <rocky@fusionbox.com>
Mon, 11 Jun 2012 17:23:53 +0000 (11:23 -0600)
commit02fac57479f6e314fd74d11ad039e02ba61875a5
tree809e198089df0e33d1eea6434d92b85fed2fba7c
parent5b9d611e9c40d1ac50b88cce8c45c3a4a76d6553
getLangDefinition will now automatically load lang

I extracted the loadLang function out of moment.lang so that it could be
used internally in moment.  When developers use moment.fn.lang or
moment.langData now, if the language requested has not yet been loaded,
it will be loaded.  Unlike moment.lang, these functions do not change
the global language config.
moment.js
test/moment/lang.js