Merge pull request #11 from MozMorris/polyfills

Add lodash polyfills for Number.isNaN & Number.isFinite
This commit is contained in:
Moz Morris 2015-06-26 15:28:03 +01:00
commit ab8179fa2d
2 changed files with 2 additions and 6 deletions

View File

@ -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",

View File

@ -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 = {