Skip to content

Commit

Permalink
Separate module loader logic, get rid of CC output wrap
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Jun 17, 2015
1 parent 59ed8d3 commit 38fae64
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 24 deletions.
20 changes: 12 additions & 8 deletions dist/Long.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,16 @@
* Released under the Apache License, Version 2.0
* see: https://github.com/dcodeIO/Long.js for details
*/
(function(global) {
(function(global, factory) {

/* AMD */ if (typeof define === 'function' && define["amd"])
define([], factory);
/* CommonJS */ else if (typeof require === 'function' && typeof module === "object" && module && module["exports"])
module["exports"] = factory();
/* Global */ else
(global["dcodeIO"] = global["dcodeIO"] || {})["Long"] = factory();

})(this, function() {
"use strict";

/**
Expand Down Expand Up @@ -934,11 +943,6 @@
return new Long(this.low, this.high, true);
};

/* CommonJS */ if (typeof require === 'function' && typeof module === 'object' && module && typeof exports === 'object' && exports)
module["exports"] = Long;
/* AMD */ else if (typeof define === 'function' && define["amd"])
define(function() { return Long; });
/* Global */ else
(global["dcodeIO"] = global["dcodeIO"] || {})["Long"] = Long;
return Long;

})(this);
});
10 changes: 5 additions & 5 deletions dist/Long.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/Long.min.js.gz
Binary file not shown.
Loading

0 comments on commit 38fae64

Please sign in to comment.