Merge "resourceloader: Simplify StringSet fallback"
[lhc/web/wiklou.git] / resources / src / jquery / jquery.lengthLimit.js
index 186ad17..26f8f9b 100644 (file)
@@ -1,7 +1,7 @@
 /**
  * @class jQuery.plugin.lengthLimit
  */
-( function ( $, mw ) {
+( function () {
 
        var
                eventKeys = [
 
                // If the first argument is the function,
                // set filterFn to the first argument's value and ignore the second argument.
-               if ( $.isFunction( limit ) ) {
+               if ( typeof limit === 'function' ) {
                        filterFn = limit;
                        limit = undefined;
                // Either way, verify it is a function so we don't have to call
                // isFunction again after this.
-               } else if ( !filterFn || !$.isFunction( filterFn ) ) {
+               } else if ( !filterFn || typeof filterFn !== 'function' ) {
                        filterFn = undefined;
                }
 
         * @class jQuery
         * @mixins jQuery.plugin.lengthLimit
         */
-}( jQuery, mediaWiki ) );
+}() );