Fix eslint warnings and switch to error code
[lhc/web/wiklou.git] / resources / src / jquery / jquery.suggestions.js
index 39c601f..663950a 100644 (file)
                        if ( context.data.timerID !== null ) {
                                clearTimeout( context.data.timerID );
                        }
-                       if ( $.isFunction( context.config.cancel ) ) {
+                       if ( typeof context.config.cancel === 'function' ) {
                                context.config.cancel.call( context.data.$textbox );
                        }
                },