Skip to content

Commit

Permalink
change hash back to private property
Browse files Browse the repository at this point in the history
  • Loading branch information
Molly Lloyd committed May 29, 2017
1 parent fc2afc1 commit c87fbae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/ui/control/attribution_control.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class AttributionControl {
}
return acc;
}, `?`);
this._editLink.href = `https://www.mapbox.com/feedback/${paramString}${this._map.hash ? this._map.hash.getHashString(true) : ''}`;
this._editLink.href = `https://www.mapbox.com/feedback/${paramString}${this._map._hash ? this._map._hash.getHashString(true) : ''}`;

}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ui/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ class Map extends Camera {

bindHandlers(this, options);

this.hash = options.hash && (new Hash()).addTo(this);
this._hash = options.hash && (new Hash()).addTo(this);
// don't set position from options if set through hash
if (!this.hash || !this.hash._onHashChange()) {
if (!this._hash || !this._hash._onHashChange()) {
this.jumpTo({
center: options.center,
zoom: options.zoom,
Expand Down

0 comments on commit c87fbae

Please sign in to comment.