Skip to content

Commit

Permalink
Fix export bug (publiclab#521)
Browse files Browse the repository at this point in the history
* Fix line break unix v windows

* fix clear interval bug that causes infinite alert loop
  • Loading branch information
sashadev-sky committed Jan 12, 2020
1 parent 1583f22 commit c536663
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/leaflet.distortableimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/edit/DistortableCollection.Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c536663

Please sign in to comment.