leaflet.fullscreen
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -36,2 +36,19 @@ (function () { | ||
onRemove: function (map) { | ||
L.DomEvent | ||
.off(this.link, 'click', L.DomEvent.stopPropagation) | ||
.off(this.link, 'click', L.DomEvent.preventDefault) | ||
.off(this.link, 'click', this.toggleFullScreen, this); | ||
L.DomEvent | ||
.off(this._container, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation) | ||
.off(this._container, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault) | ||
.off(this._container, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, this); | ||
L.DomEvent | ||
.off(document, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation) | ||
.off(document, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault) | ||
.off(document, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, this); | ||
}, | ||
_createButton: function (title, className, content, container, fn, context) { | ||
@@ -47,15 +64,15 @@ this.link = L.DomUtil.create('a', className, container); | ||
L.DomEvent | ||
.addListener(this.link, 'click', L.DomEvent.stopPropagation) | ||
.addListener(this.link, 'click', L.DomEvent.preventDefault) | ||
.addListener(this.link, 'click', fn, context); | ||
.on(this.link, 'click', L.DomEvent.stopPropagation) | ||
.on(this.link, 'click', L.DomEvent.preventDefault) | ||
.on(this.link, 'click', fn, context); | ||
L.DomEvent | ||
.addListener(container, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation) | ||
.addListener(container, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault) | ||
.addListener(container, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, context); | ||
.on(container, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation) | ||
.on(container, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault) | ||
.on(container, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, context); | ||
L.DomEvent | ||
.addListener(document, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation) | ||
.addListener(document, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault) | ||
.addListener(document, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, context); | ||
.on(document, fullScreenApi.fullScreenEventName, L.DomEvent.stopPropagation) | ||
.on(document, fullScreenApi.fullScreenEventName, L.DomEvent.preventDefault) | ||
.on(document, fullScreenApi.fullScreenEventName, this._handleFullscreenChange, context); | ||
@@ -62,0 +79,0 @@ return this.link; |
{ | ||
"name": "leaflet.fullscreen", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Simple plugin for Leaflet that adds fullscreen button to your maps.", | ||
@@ -20,3 +20,3 @@ "main": "Control.FullScreen.js", | ||
"devDependencies": { | ||
"eslint": "2.3.0" | ||
"eslint": "^5.4.0" | ||
}, | ||
@@ -23,0 +23,0 @@ "author": "b_b", |
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
15135
205