diff --git a/dist/leaflet.distortableimage.js b/dist/leaflet.distortableimage.js index a04bc29cf..b546b443e 100644 --- a/dist/leaflet.distortableimage.js +++ b/dist/leaflet.distortableimage.js @@ -3115,7 +3115,7 @@ L.DistortableCollection.Edit = L.Handler.extend({ } if (data.status === 'complete') { - clearInterval(this.updateInterval); + clearInterval(self.updateInterval); resolve(); if (data.jpg !== null) { alert('Export succeeded. ' + opts.exportUrl + data.jpg); diff --git a/package-lock.json b/package-lock.json index b741707cb..645a5d930 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "leaflet-distortableimage", - "version": "0.11.0", + "version": "0.11.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 74b051ab8..f211c61d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "leaflet-distortableimage", - "version": "0.11.0", + "version": "0.11.1", "description": "Leaflet plugin enabling image overlays to be distorted, stretched, and warped (built for Public Lab's MapKnitter: http://publiclab.org).", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", diff --git a/src/edit/DistortableCollection.Edit.js b/src/edit/DistortableCollection.Edit.js index a805caeb9..f346245ff 100644 --- a/src/edit/DistortableCollection.Edit.js +++ b/src/edit/DistortableCollection.Edit.js @@ -274,7 +274,7 @@ L.DistortableCollection.Edit = L.Handler.extend({ } if (data.status === 'complete') { - clearInterval(this.updateInterval); + clearInterval(self.updateInterval); resolve(); if (data.jpg !== null) { alert('Export succeeded. ' + opts.exportUrl + data.jpg);