Skip to content

Commit

Permalink
Fix syntax error jscs
Browse files Browse the repository at this point in the history
  • Loading branch information
elias75015 committed Apr 5, 2018
1 parent cbc587d commit 5410ba0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Itowns/GlobeViewExtended.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,15 @@ define([
*/
GlobeViewExtended.prototype.onCameraMoveStop = function (cb) {
var self = this;
/**
* callback
*/
function afterRenderHandler () {
self._globeView.removeFrameRequester(Itowns.MAIN_LOOP_EVENTS.AFTER_CAMERA_UPDATE, afterRenderHandler);
cb();
};
this._globeView.addFrameRequester(Itowns.MAIN_LOOP_EVENTS.AFTER_CAMERA_UPDATE, afterRenderHandler);
}
};

/**
* Disables globe controls until the globe rendering is completed
Expand Down

0 comments on commit 5410ba0

Please sign in to comment.