[jQuery] Re: Change this when binding element

2009-12-27 Thread Ami
I get an answer from John: http://groups.google.com/group/jquery-dev/msg/9345d498c4a1d5f5 On Dec 23, 5:05 pm, Ami aminad...@gmail.com wrote: One solution is to use the data property like: function myObj() { document.bind('scroll',this,this.myScroll); this.myScroll=function (data) {        

[jQuery] Re: Change this when binding element

2009-12-23 Thread Ami
One solution is to use the data property like: function myObj() { document.bind('scroll',this,this.myScroll); this.myScroll=function (data) { //Now I am trying to get this.a alert(data.a)} } But I am sure that changing the scope will work better. On Dec 23, 5:03