Core Docs | Additional Modules Docs
//In this example the onloaded function fires when the node with the id #navigation is available the onloaded function, receives a this which is essentialy the element passed through sb.$
sb.dom.onReady({
id : '#navigation',
onReady : function(){
alert(this.innerHTML);
},
interval : 100,
tries : 10,
ontimeout function(el){
alert(el+' not found');
},
args : ['one', 'two']
});