Is there anyway to bind a function to the document/window without using events or setInterval/timeout ?
i mean i would like to bind function like :
$(document).bind(function(){
//if element changed class remove element
});
maybe it's a stupid question but i would like to not use loops over element.