Skip to content

Commit

Permalink
Replaced Infinity with Number.MAX_VALUE.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderby committed Dec 2, 2016
1 parent 320e9f9 commit eca5db3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/grammar-registry.js
Expand Up @@ -355,10 +355,10 @@ GrammarRegistry
}
return memo;
}, {
top: Infinity,
right: -Infinity,
bottom: -Infinity,
left: Infinity
top: Number.MAX_VALUE,
right: -Number.MAX_VALUE,
bottom: -Number.MAX_VALUE,
left: Number.MAX_VALUE
});

const fixScale = (scale, start, end, flip) => {
Expand Down

0 comments on commit eca5db3

Please sign in to comment.