layerssss / paste.js

read image/text data from clipboard (cross-browser)
http://layerssss.github.io/paste.js/
MIT License
463 stars 94 forks source link

How to unbind pasteImage event #38

Closed salvisb closed 7 years ago

salvisb commented 7 years ago

Hi, what is correct way to unbind pasteImage event? Thanks!

$('html').pastableNonInputable();

$('*').on('pasteImage', function (ev, data) {
    // code
});
layerssss commented 7 years ago

Maybe try $('*').off('pasteImage'); to turn it off.

salvisb commented 7 years ago

Great, thanks!