Skip to content

Commit

Permalink
Merge pull request #33 from wwwtyro/feature/remove-map-resize-debounce
Browse files Browse the repository at this point in the history
remove the debounce on MapGL._resizeMap
  • Loading branch information
vicapow committed Dec 13, 2015
2 parents f68ba5f + 118326c commit 5bfedd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion package.json
Expand Up @@ -20,7 +20,6 @@
"bowser": "^0.7.3",
"canvas-composite-types": "^1.0.0",
"d3": "^3.5.5",
"debounce": "^1.0.0",
"global": "^4.3.0",
"keymirror": "^0.1.1",
"mapbox-gl": "0.11.4",
Expand Down
5 changes: 2 additions & 3 deletions src/map.react.js
Expand Up @@ -21,7 +21,6 @@

var assert = require('assert');
var React = require('react');
var debounce = require('debounce');
var r = require('r-dom');
var d3 = require('d3');
var assign = require('object-assign');
Expand Down Expand Up @@ -282,10 +281,10 @@ var MapGL = React.createClass({
}
},

_resizeMap: debounce(function _resizeMap() {
_resizeMap: function _resizeMap() {
var map = this._getMap();
map.resize();
}, 100),
},

_diffSources: function _diffSources(prevStyle, nextStyle) {
var prevSources = prevStyle.get('sources');
Expand Down

0 comments on commit 5bfedd9

Please sign in to comment.