diff --git a/src/wScratchPad.js b/src/wScratchPad.js index f90e68f..02f434a 100644 --- a/src/wScratchPad.js +++ b/src/wScratchPad.js @@ -122,7 +122,7 @@ $(new Image()) .attr('crossOrigin', '') .attr('src', this.options.fg) - .load(function () { + .on('load', function () { _this.ctx.drawImage(this, 0, 0, width, height); _this.$img.show(); }); @@ -317,4 +317,4 @@ first.target.dispatchEvent(simulatedEvent); }); }; -})(jQuery); \ No newline at end of file +})(jQuery);