Skip to content

Commit

Permalink
Delete complete callback from data after firing
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed Feb 3, 2018
1 parent 9acef38 commit 7e1854d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dist/jcanvas.js
Original file line number Diff line number Diff line change
Expand Up @@ -1522,6 +1522,7 @@ $.fn.drawLayers = function drawLayers(args) {
// Run completion callback (if provided) once all layers have drawn
if (params.complete) {
params.complete.call($canvases[e]);
delete data.drawLayersComplete;
}

// Get first layer that intersects with event coordinates
Expand Down

0 comments on commit 7e1854d

Please sign in to comment.