Skip to content

Commit

Permalink
attempt at full transparency publiclab/mapknitter#168 and #6
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed May 26, 2015
1 parent 972ff0f commit a676e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/leaflet.distortableimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ L.DistortableImage.Edit = L.Handler.extend({
opacity, outline;

this._outlined = !this._outlined;
opacity = this._outlined ? this.options.opacity / 2 : 1;
opacity = this._outlined ? 0 : 1;
outline = this._outlined ? this.options.outline : 'none';

L.DomUtil.setOpacity(image, opacity);
Expand Down
2 changes: 1 addition & 1 deletion src/edit/DistortableImage.Edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ L.DistortableImage.Edit = L.Handler.extend({
opacity, outline;

this._outlined = !this._outlined;
opacity = this._outlined ? this.options.opacity / 2 : 1;
opacity = this._outlined ? 0 : 1;
outline = this._outlined ? this.options.outline : 'none';

L.DomUtil.setOpacity(image, opacity);
Expand Down

0 comments on commit a676e3b

Please sign in to comment.