Skip to content

Commit

Permalink
Build 2.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ichernev committed Aug 1, 2014
1 parent 9a80710 commit 747bb3a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions min/moment-with-locales.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! moment.js
//! version : 2.8.0
//! version : 2.8.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
Expand All @@ -10,7 +10,7 @@
************************************/

var moment,
VERSION = '2.8.0',
VERSION = '2.8.1',
// the global-scope this is NOT the global object in Node.js
globalScope = typeof global !== 'undefined' ? global : this,
oldGlobalMoment,
Expand Down Expand Up @@ -2444,7 +2444,12 @@
lang : deprecate(
"moment().lang() is deprecated. Use moment().localeData() instead.",
function (key) {
return this.localeData(key);
if (key === undefined) {
return this.localeData();
} else {
this._locale = moment.localeData(key);
return this;
}
}
),

Expand Down
Loading

0 comments on commit 747bb3a

Please sign in to comment.