Skip to content

Commit

Permalink
Fix drawImage load() callback not running for non-layers
Browse files Browse the repository at this point in the history
  • Loading branch information
caleb531 committed May 30, 2024
1 parent bbfc671 commit fcb53a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jcanvas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4179,7 +4179,7 @@ $.fn.drawImage = function drawImage(args) {
if (params.layer && layer) {
// Trigger 'load' event for layers
_triggerLayerEvent($canvas, data, layer, "load");
} else if (params.load && layer) {
} else if (params.load) {
// Run 'load' callback for non-layers
params.load.call($canvas[0], layer);
}
Expand Down

0 comments on commit fcb53a0

Please sign in to comment.