I done allot of hunting around in the javascript api's on mozillas website without any luck. so i figured the method wasnt already there.
so i decided to add it
Array.prototype.pushId = function(){
var r = undefined;
var x = 0;
while(!r){
if(!this[x]){
r = x;
}
x++;
}
return r;
}
i'm having problems with, it tho, any ideas?