I am suggestion for new small feaute in jQuery.
add a new proeprty to "bind" function. a Scope property.
sometimes I am binding a function inside object. So I need a solution
to change the scope of this function.
something like:
$().bind('click',data,scope,function)
----
For Example:
function myObj()
{
this.a='1'
document.bind('scroll',this.myScroll);
this.myScroll=function () {
//Now I am trying to get this.a
alert(this.a)}
//This is make an error becuase this is an HtmlElement and not
THIS
object
}
var a=new myObj();