antimatter15 / vxjs

Automatically exported from code.google.com/p/vxjs
0 stars 0 forks source link

fade() end callback not implemented #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. _.F('out',_G('tgt'),function(){alert('test')});

What is the expected output? What do you see instead?
alert() does not fire.  

Here is the fade() function:
_.fade=_.F=function(d,h,e,f,i){d=d=='in';_.A(f?f:15,i?i:50,function(a){a=(d?0:1)
+(d?1:-1)*a;h.style.opacity=a;h.style.filter='alpha(opacity='+100*a+')'})}

The 'e' param is not accessed in the function, so it never fires.

To fix, change to:
_.fade=_.F=function(d,h,e,f,i){d=d=='in';_.A(f?f:15,i?i:50,function(a){a=(d?0:1)
+(d?1:-1)*a;h.style.opacity=a;h.style.filter='alpha(opacity='+100*a+')'},e)}

Original issue reported on code.google.com by thenots...@gmail.com on 14 Jul 2010 at 4:40