Skip to content

Commit

Permalink
Fix incorrect example and destroy method.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Apr 16, 2014
1 parent eb7f852 commit bd0f4a9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Source/Widgets/NavigationHelpButton/NavigationHelpButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ define([
* // Note: This code assumed you already have a Scene instance.
*
* var scene = viewer.scene;
* var navigationHelpButton = new Cesium.NavigationHelpButton('navigationHelpButtonContainer', scene);
* var navigationHelpButton = new Cesium.NavigationHelpButton({
* container : 'navigationHelpButtonContainer'
* });
*/
var NavigationHelpButton = function (description) {
//>>includeStart('debug', pragmas.debug);
Expand Down Expand Up @@ -158,8 +160,8 @@ cesiumSvgPath: { path: _svgPath, width: 32, height: 32 }');
NavigationHelpButton.prototype.destroy = function () {
this._viewModel.destroy();

//document.removeEventListener('mousedown', this._closeDropDown, true);
//document.removeEventListener('touchstart', this._closeDropDown, true);
document.removeEventListener('mousedown', this._closeInstructions, true);
document.removeEventListener('touchstart', this._closeInstructions, true);

knockout.cleanNode(this._wrapper);
this._container.removeChild(this._wrapper);
Expand Down

0 comments on commit bd0f4a9

Please sign in to comment.