|
@@ -35,7 +35,7 @@
|
|
options = $.extend({}, defaults, options);
|
|
options = $.extend({}, defaults, options);
|
|
return this.each(function() {
|
|
return this.each(function() {
|
|
const element = this;
|
|
const element = this;
|
|
- return $(element).bind('paste', function(event) {
|
|
|
|
|
|
+ return $(element).on('paste', function(event) {
|
|
const types = event.clipboardData.types;
|
|
const types = event.clipboardData.types;
|
|
const items = event.clipboardData.items;
|
|
const items = event.clipboardData.items;
|
|
for (let i = 0; i < types.length; i++) {
|
|
for (let i = 0; i < types.length; i++) {
|