Skip to content

Commit 7f7260b

Browse files
committed
update to moment@2.3.1
1 parent 96deeb9 commit 7f7260b

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

moment/Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = function(grunt) {
1515
/\(function\s*\(undefined\)\s*\{/,
1616
'define(function(require, exports, module) {'
1717
);
18-
code = code.slice(0, code.indexOf('if (hasModule) {'))
18+
code = code.slice(0, code.indexOf('function makeGlobal() {'))
1919
code += 'module.exports = moment;\n});\n'
2020
return code
2121
}

moment/dist/moment-debug.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,15 +1783,5 @@ define("gallery/moment/2.3.1/moment-debug", [], function(require, exports, modul
17831783
/************************************
17841784
Exposing Moment
17851785
************************************/
1786-
function makeGlobal() {
1787-
/*global ender:false */
1788-
if (typeof ender === "undefined") {
1789-
// here, `this` means `window` in the browser, or `global` on the server
1790-
// add `moment` as a global object via a string identifier,
1791-
// for Closure Compiler "advanced" mode
1792-
this["moment"] = moment;
1793-
}
1794-
}
1795-
// CommonJS module is defined
17961786
module.exports = moment;
17971787
});

0 commit comments

Comments
 (0)