Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Fix to run on jQuery 3 #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/wScratchPad.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
Expand Down Expand Up @@ -317,4 +317,4 @@
first.target.dispatchEvent(simulatedEvent);
});
};
})(jQuery);
})(jQuery);