mirror of
https://github.com/google-map-react/google-map-react.git
synced 2025-12-08 18:26:32 +00:00
Merge pull request #11 from MozMorris/polyfills
Add lodash polyfills for Number.isNaN & Number.isFinite
This commit is contained in:
commit
ab8179fa2d
@ -35,6 +35,7 @@
|
||||
"eventemitter3": "^1.1.0",
|
||||
"lodash.assign": "^3.2.0",
|
||||
"lodash.isfunction": "^3.0.5",
|
||||
"lodash.isnumber": "^3.0.1",
|
||||
"lodash.isplainobject": "^3.1.0",
|
||||
"lodash.pick": "^3.1.0",
|
||||
"point-geometry": "0.0.0",
|
||||
|
||||
@ -17,6 +17,7 @@ import isFunction from 'lodash.isfunction';
|
||||
import isPlainObject from 'lodash.isplainobject';
|
||||
import pick from 'lodash.pick';
|
||||
import assign from 'lodash.assign';
|
||||
import isNumber from 'lodash.isnumber';
|
||||
|
||||
const kEPS = 0.00001;
|
||||
const K_GOOGLE_TILE_SIZE = 256;
|
||||
@ -41,12 +42,6 @@ const style = {
|
||||
position: 'relative'
|
||||
};
|
||||
|
||||
|
||||
function isNumber(n) {
|
||||
return !Number.isNaN(parseFloat(n)) && Number.isFinite(n);
|
||||
}
|
||||
|
||||
|
||||
export default class GoogleMap extends Component {
|
||||
|
||||
static propTypes = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user