MediaWiki:Gadget-morebits.js: Difference between revisions

v2.0 at 9b61d36: Remove deprecated functions and unneeded shims
imported>MusikAnimal
(v2.0 at 83fff83: Ignore file/category embeds when removing links (#239))
(v2.0 at 9b61d36: Remove deprecated functions and unneeded shims)
Line 339:
var tmpgroup = current.subgroup;
 
if( ! $Array.isArray( tmpgroup ) ) {
tmpgroup = [ tmpgroup ];
}
Line 549:
}
if (data.label) {
if ( ! $Array.isArray( data.label ) ) {
data.label = [ data.label ];
}
Line 997:
var initial = null;
var result = [];
if( ! $Array.isArray( skip ) ) {
if( skip === undefined ) {
skip = [];
Line 1,063:
Morebits.array = {
uniq: function(arr) {
if ( ! $Array.isArray( arr ) ) {
throw "A non-array object passed to Morebits.array.uniq";
}
Line 1,076:
},
dups: function(arr) {
if ( ! $Array.isArray( arr ) ) {
throw "A non-array object passed to Morebits.array.dups";
}
Line 1,092:
},
chunk: function( arr, size ) {
if ( ! $Array.isArray( arr ) ) {
throw "A non-array object passed to Morebits.array.chunk";
}
Line 3,216:
}
var res;
if( $Array.isArray( arr[i] ) ){
var v = [];
for(var j = 0; j < arr[i].length; ++j ) {
Line 3,268:
 
Morebits.status.onError = function( handler ) {
if ( $.isFunction(typeof handler )=== 'function' ) {
Morebits.status.errorEvent = handler;
} else {
Line 3,296:
},
codify: function( obj ) {
if ( ! $Array.isArray( obj ) ) {
obj = [ obj ];
}
Anonymous user