Skip to content

Commit

Permalink
Fix CommonJS detect
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Jan 14, 2014
1 parent e406273 commit 58de265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/polyline.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ polyline.encode = function(coordinates, precision) {
return output;
};

if (typeof module !== undefined) module.exports = polyline;
if (typeof module === 'object' && module.exports) module.exports = polyline;

0 comments on commit 58de265

Please sign in to comment.