Permalink
Please sign in to comment.
Showing
with
16 additions
and 12 deletions.
- +6 −4 Gruntfile.js
- +2 −2 lib/formatter.js
- +1 −1 lib/formatter.min.js
- +5 −4 src/tmpls/intro.js
- +2 −1 src/tmpls/outro.js
10
Gruntfile.js
@@ -1,4 +1,5 @@ | ||
-;(function (window, document, undefined) { | ||
- | ||
-// Expose to window | ||
-if (typeof window !== 'undefined') { window.Formatter = Formatter; } | ||
+;(function (name, context, definition) { | ||
+ if (typeof module !== 'undefined' && module.exports) { module.exports = definition(); } | ||
+ else if (typeof define === 'function' && define.amd) { define(definition); } | ||
+ else { context[name] = definition(); } | ||
+})('Formatter', this, function () { |
@@ -1,2 +1,3 @@ | ||
+return Formatter; | ||
-})(window, document); | ||
+}); |
0 comments on commit
5e93881