Reference to event

11 views
Skip to first unread message

Acu

unread,
Feb 9, 2012, 5:01:47 AM2/9/12
to Prototype & script.aculo.us
Hi

Sorry if the subject was ever discussed, but I cannot find any hint
for it. My question is as follows:

Is there any way to get reference to the Effect from within the
callback function?
Sample:

new Effect.BlindUp(element, {
duration: 0.5,
beforeStart: function()
{
if(condition) {
// here I need reference to the Effect, to cancel it (for egzample)
}
}
});

Tried bind "this" on some different ways without success.

Appreciate any help.

-wz


Wojtek Zadora

unread,
Feb 9, 2012, 5:05:39 AM2/9/12
to Prototype & script.aculo.us
Sorry it was stupid question - I may set condition before even creating
effect. Sorry - no question
-wz
Reply all
Reply to author
Forward
0 new messages