Skip to content

Commit

Permalink
Fixed exponentiation operator in popup.html example
Browse files Browse the repository at this point in the history
Changed '**' usage to Math.pow(), because the world isn't ready for ES7.
  • Loading branch information
chugcup committed Sep 21, 2016
1 parent 298c53d commit d28a05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@

// Truncate value based on number of decimals
var _round = function(num, len) {
return Math.round(num*(10**len))/(10**len);
return Math.round(num*(Math.pow(10, len)))/(Math.pow(10, len));
};
// Helper method to format LatLng object (x.xxxxxx, y.yyyyyy)
var strLatLng = function(latlng) {
Expand Down

0 comments on commit d28a05d

Please sign in to comment.