Skip to content

Commit

Permalink
regarding global, remove unnecessary assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
p-baleine committed Jun 22, 2012
1 parent 1203fe6 commit 975ec27
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
languages = {},
currentLanguage = 'en',

// Establish the root object, `window` in the browser, or `global` on the server.
root = this,

// check for nodeJS
hasModule = (typeof module !== 'undefined' && module.exports),

Expand Down Expand Up @@ -1083,7 +1080,8 @@
}
/*global ender:false */
if (typeof ender === 'undefined') {
root['moment'] = moment;
// here, `this` means `window` in the browser, or `global` on the server
this.moment = moment;
}
/*global define:false */
if (typeof define === "function" && define.amd) {
Expand Down

0 comments on commit 975ec27

Please sign in to comment.