Skip to content

Commit

Permalink
Create FeatureManager.js
Browse files Browse the repository at this point in the history
Fixed indentation, added this. to be consistent with other calls to _visibleZoom()
  • Loading branch information
jordanparfitt authored Jun 15, 2017
1 parent b414c54 commit 4e8d520
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Layers/FeatureLayer/FeatureManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,12 +235,12 @@ export var FeatureManager = VirtualGrid.extend({

pendingRequests--;

if (pendingRequests <= 0 && _visibleZoom()) {
if (pendingRequests <= 0 && this._visibleZoom()) {
this._currentSnapshot = newSnapshot;
// schedule adding features for the next animation frame
Util.requestAnimFrame(Util.bind(function () {
this.removeLayers(oldSnapshot);
this.addLayers(newSnapshot);
this.addLayers(newSnapshot);
if (callback) {
callback.call(context, requestError);
}
Expand Down

0 comments on commit 4e8d520

Please sign in to comment.