Skip to content

Commit

Permalink
fix: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
jony89 authored Feb 5, 2020
1 parent 4aa6bdf commit f229a72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Widgets/CesiumWidget/CesiumWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ import getElement from '../getElement.js';
var title = 'An error occurred while rendering. Rendering has stopped.';
that.showErrorPanel(title, undefined, error);
}
}
};
scene.renderError.addEventListener(this._onRenderError);
} catch (error) {
if (showRenderLoopErrors) {
Expand Down Expand Up @@ -673,7 +673,7 @@ import getElement from '../getElement.js';
*/
CesiumWidget.prototype.destroy = function() {
if (this._scene) {
this._scene.renderError.removeEventListener(this._onRenderError);
this._scene.renderError.removeEventListener(this._onRenderError);
}
this._scene = this._scene && this._scene.destroy();
this._container.removeChild(this._element);
Expand Down

0 comments on commit f229a72

Please sign in to comment.