Hi,
First of all congrats on such an awesome project, it really is truly
epic.
Is there a way to set the timeout for the visible function? at the
moment it seems to be hardcoded at 12 seconds. Unfortunately some
pages can take more than 12 seconds to load (e.g: CMS stuff) I am
getting round this problem by using S.wait. but a more elegant and
robust solution would be to increase the timeout.
Demo:
http://s3.johntregoning.com/funcUnit/visible/funcunit.html
PS: I tried to work out what the visible method does, I found myself
looking at this:
<code>
visible : function(callback){
var self = this,
sel = this.selector,
ret;
this.selector += ":visible"
if(true){
return this.size(function(size){
return size > 0;
}, function(){
self.selector = sel;
callback && callback();
})
}else{
ret = this.size() > 0;
this.selector = sel;
return ret;
}
}
</code>
I can't see why you need the if/else statement, if(true) surely it is
always true and the else never gets executed or, (more likely) I am
just not getting what this code is doing.
Cheers.
JT.