I''m running into problems when trying to use the delay function on
effect callbacks:
http://ianty.com/1082008/effects_blind_delay_test.html
(click the blind up/down links to replicate error)
Error:
this.options[eventName] is not a function
In light of this error, shouldn''t line number 298 of effects.js be:
if (Object.isFunction(this.options[eventName]))
this.options[eventName](this);
Instead of:
if (this.options[eventName]) this.options[eventName](this);
I would appreciate any thoughts/ideas about this!
Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
I don''t see a "delay" property for checked in your code.
You could do this:
var checkTimer
function checked(delay) {
checkTimer = setTimeout("alert(''moo'')",delay)
}
function BreakItDown(element){
Effect.BlindDown(element, {afterFinish:
checked(1000)});
}
On Jan 8, 3:34 pm, itynd...-ue636x8T32g@public.gmane.org
wrote:> I''m running into problems when trying to use the delay function on
> effect callbacks:
>
> http://ianty.com/1082008/effects_blind_delay_test.html
> (click the blind up/down links to replicate error)
>
> Error:
> this.options[eventName] is not a function
>
> In light of this error, shouldn''t line number 298 of effects.js
be:
>
> if (Object.isFunction(this.options[eventName]))
> this.options[eventName](this);
>
> Instead of:
>
> if (this.options[eventName]) this.options[eventName](this);
>
> I would appreciate any thoughts/ideas about this!
>
> Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
I''m using the delay function like this:
Effect.BlindDown(element, {afterFinish: checked.delay(2)});
* checked is the name of the function for the afterFinish callback
On Jan 8, 3:52 pm, Diodeus
<diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I don''t see a "delay" property for checked in your code.
>
> You could do this:
>
> var checkTimer
> function checked(delay) {
> checkTimer =
setTimeout("alert(''moo'')",delay)}
>
> function BreakItDown(element){
> Effect.BlindDown(element, {afterFinish:
> checked(1000)});
> }
>
> On Jan 8, 3:34 pm, itynd...-ue636x8T32g@public.gmane.org wrote:
>
> > I''m running into problems when trying to use the delay
function on
> > effect callbacks:
>
> >http://ianty.com/1082008/effects_blind_delay_test.html
> > (click the blind up/down links to replicate error)
>
> > Error:
> > this.options[eventName] is not a function
>
> > In light of this error, shouldn''t line number 298 of
effects.js be:
>
> > if (Object.isFunction(this.options[eventName]))
> > this.options[eventName](this);
>
> > Instead of:
>
> > if (this.options[eventName]) this.options[eventName](this);
>
> > I would appreciate any thoughts/ideas about this!
>
> > Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
> > On Jan 8, 3:34 pm, itynd...-ue636x8T32g@public.gmane.org wrote: > > > > > I''m running into problems when trying to use the delay function on > > > effect callbacks: > > > > > Error: > > > this.options[eventName] is not a functionYes, I am getting the same thing when writing code similar to yours. A possible workaround (albeit ugly) is to do the delay yourself: function someMethod(){ alert( "Hooray!" ); } Element.blindDown( ''some_element'', { afterFinish: function(){ window.setTimeout( someMethod, 5000 ); } } ); -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Try:
Effect.BlindDown(element, {
afterFinish: function() { checked.delay(2) }
});
Best,
Tobie
On Jan 8, 9:54 pm, itynd...-ue636x8T32g@public.gmane.org
wrote:> I''m using the delay function like this:
>
> Effect.BlindDown(element, {afterFinish: checked.delay(2)});
>
> * checked is the name of the function for the afterFinish callback
>
> On Jan 8, 3:52 pm, Diodeus
<diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > I don''t see a "delay" property for checked in your
code.
>
> > You could do this:
>
> > var checkTimer
> > function checked(delay) {
> > checkTimer =
setTimeout("alert(''moo'')",delay)}
>
> > function BreakItDown(element){
> > Effect.BlindDown(element, {afterFinish:
> > checked(1000)});
> > }
>
> > On Jan 8, 3:34 pm, itynd...-ue636x8T32g@public.gmane.org wrote:
>
> > > I''m running into problems when trying to use the delay
function on
> > > effect callbacks:
>
> > >http://ianty.com/1082008/effects_blind_delay_test.html
> > > (click the blind up/down links to replicate error)
>
> > > Error:
> > > this.options[eventName] is not a function
>
> > > In light of this error, shouldn''t line number 298 of
effects.js be:
>
> > > if (Object.isFunction(this.options[eventName]))
> > > this.options[eventName](this);
>
> > > Instead of:
>
> > > if (this.options[eventName]) this.options[eventName](this);
>
> > > I would appreciate any thoughts/ideas about this!
>
> > > Ian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
I should have thought of that, thanks Tobie! On Jan 8, 6:31 pm, Tobie Langel <tobie.lan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Try: > > Effect.BlindDown(element, { > afterFinish: function() { checked.delay(2) } > > }); > > Best, > > Tobie > > On Jan 8, 9:54 pm, itynd...-ue636x8T32g@public.gmane.org wrote: > > > I''m using the delay function like this: > > > Effect.BlindDown(element, {afterFinish: checked.delay(2)}); > > > * checked is the name of the function for the afterFinish callback > > > On Jan 8, 3:52 pm, Diodeus <diod...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > I don''t see a "delay" property for checked in your code. > > > > You could do this: > > > > var checkTimer > > > function checked(delay) { > > > checkTimer = setTimeout("alert(''moo'')",delay)} > > > > function BreakItDown(element){ > > > Effect.BlindDown(element, {afterFinish: > > > checked(1000)}); > > > } > > > > On Jan 8, 3:34 pm, itynd...-ue636x8T32g@public.gmane.org wrote: > > > > > I''m running into problems when trying to use the delay function on > > > > effect callbacks: > > > > >http://ianty.com/1082008/effects_blind_delay_test.html > > > > (click the blind up/down links to replicate error) > > > > > Error: > > > > this.options[eventName] is not a function > > > > > In light of this error, shouldn''t line number 298 of effects.js be: > > > > > if (Object.isFunction(this.options[eventName])) > > > > this.options[eventName](this); > > > > > Instead of: > > > > > if (this.options[eventName]) this.options[eventName](this); > > > > > I would appreciate any thoughts/ideas about this! > > > > > Ian--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---