Displaying 1 result from an estimated 1 matches for "selectorarray".
2005 Nov 24
1
Extended $ function called $$
...rray
String.prototype.inArray = function(array){
for(var i=0; i<array.length; i++){
if(this == array[i]){return true;}
}
return false;
}
$$=function(){
if(typeof arguments[0] != ''string''){
return arguments[0];
}
// get a nice flat array of selectors
var selectorArray = [];
for(var i=0; i<arguments.length; i++){
selectorArray.append(arguments[i].split('',''));
}
// iterate through selectorArray and return elements
var elements=[];
for(var i=0; i<selectorArray.length; i++){
var selector = selectorArray[i];
var partArray =...