leaflet.fullscreen
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -244,9 +244,11 @@ /*! | ||
leaflet.DomEvent | ||
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.off(this._container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this); | ||
if (this._screenfull.isEnabled) { | ||
leaflet.DomEvent | ||
.off(this._container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.off(this._container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this); | ||
leaflet.DomEvent | ||
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.off(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this); | ||
leaflet.DomEvent | ||
.off(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.off(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, this); | ||
} | ||
}, | ||
@@ -269,9 +271,11 @@ | ||
leaflet.DomEvent | ||
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.on(container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context); | ||
if (this._screenfull.isEnabled) { | ||
leaflet.DomEvent | ||
.on(container, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.on(container, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context); | ||
leaflet.DomEvent | ||
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.on(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context); | ||
leaflet.DomEvent | ||
.on(document, this._screenfull.raw.fullscreenchange, leaflet.DomEvent.stop) | ||
.on(document, this._screenfull.raw.fullscreenchange, this._handleFullscreenChange, context); | ||
} | ||
@@ -278,0 +282,0 @@ return this.link; |
{ | ||
"name": "leaflet.fullscreen", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "Simple plugin for Leaflet that adds fullscreen button to your maps.", | ||
@@ -5,0 +5,0 @@ "main": "Control.FullScreen.js", |
@@ -68,3 +68,3 @@ Leaflet.Control.FullScreen | ||
// you can also toggle fullscreen from map object | ||
map.toggleFullScreen(); | ||
map.toggleFullscreen(); | ||
``` | ||
@@ -71,0 +71,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18126
21338
309