dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "resourceloader: Simplify StringSet fallback"
[lhc/web/wiklou.git]
/
resources
/
src
/
jquery
/
jquery.lengthLimit.js
diff --git
a/resources/src/jquery/jquery.lengthLimit.js
b/resources/src/jquery/jquery.lengthLimit.js
index
186ad17
..
26f8f9b
100644
(file)
--- a/
resources/src/jquery/jquery.lengthLimit.js
+++ b/
resources/src/jquery/jquery.lengthLimit.js
@@
-1,7
+1,7
@@
/**
* @class jQuery.plugin.lengthLimit
*/
/**
* @class jQuery.plugin.lengthLimit
*/
-( function (
$, mw
) {
+( function () {
var
eventKeys = [
var
eventKeys = [
@@
-44,12
+44,12
@@
// If the first argument is the function,
// set filterFn to the first argument's value and ignore the second argument.
// 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.
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;
}
filterFn = undefined;
}
@@
-211,4
+211,4
@@
* @class jQuery
* @mixins jQuery.plugin.lengthLimit
*/
* @class jQuery
* @mixins jQuery.plugin.lengthLimit
*/
-}(
jQuery, mediaWiki
) );
+}() );