Skip to content

Commit

Permalink
damn you perfectionism
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner committed Oct 16, 2013
1 parent f5935dd commit b07eacf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions simplify.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -126,13 +126,13 @@ function simplify(points, tolerance, highestQuality) {
return points; return points;
} }


// export as Node module / AMD module / browser variable // export as AMD module / Node module / browser variable
if (typeof module !== 'undefined') { if (typeof define === 'function' && define.amd) {
define(function() {
return simplify;
});
} else if (typeof module !== 'undefined') {
module.exports = simplify; module.exports = simplify;

} else if (typeof define === 'function' && define.amd) {
define(function() { return simplify; });

} else { } else {
window.simplify = simplify; window.simplify = simplify;
} }
Expand Down

0 comments on commit b07eacf

Please sign in to comment.