Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function addInputEventListener(query, callback) {
- $(query)
- .on('input', callback)
- .on('compositionstart', function() {
- $(this).off('input', callback).one('compositionend', callback)
- })
- .on('compositionend', function() {
- $(this).on('input', callback)
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement