Yes, that seems to work. Sometimes the answer is too simple. Thanks,
- Louis Le 2012-04-19 à 12:48, Jay Rivers a écrit : > http://perfectionkills.com/understanding-delete/ > delete(Ape.core.$events["raw_"+"myraw"]); > > On 4/19/2012 11:46 AM, Louis Charette wrote: >> >> Thanks. I can't find the arguments for "removeEvent", but the function is >> there. I'll check the client js file if I can find something. Could be >> useful if the callback needs to be changed. Also: >> >> Ape.core.$events["raw_"+"myraw"] >> >> return something if "myraw" is already defined. I can test if this return >> "undefined" before doing "Ape.onRaw" so it doesn't get defined a second >> time. Will do for now. >> >> Thanks, >> >> - Louis >> >> Le 2012-04-19 à 12:40, Pablo Tejada a écrit : >> >>> If the client framework and the server are similar, there should be a >>> removeEvent() function or try something like this >>> >>> Ape.log(Ape.$events); >>> Ape.log(Ape.$events.toString()); >>> Ape.log(Ape.$events.toSource()); >>> >>> Im assuming the events stack is Ape.$events but i've never tried this before >>> >>> Sent from my iPhone >>> >>> On Apr 19, 2012, at 11:52 AM, Louis Charette <charette.lo...@gmail.com> >>> wrote: >>> >>>> Simple question: If I add a "OnRaw" event like this: >>>> >>>> Ape.onRaw('myraw', function() { >>>> alert("MYRAW!!"); >>>> }); >>>> >>>> Is there a way to delete this onRaw? Or at least detect it already been >>>> defined so it doesn't get added twice? >>>> >>>> >>>> Thanks, >>>> >>>> - Louis >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "APE Project" group. >>>> To post to this group, send email to ape-project@googlegroups.com >>>> To unsubscribe from this group, send email to >>>> ape-project+unsubscr...@googlegroups.com >>>> For more options, visit this group at >>>> http://groups.google.com/group/ape-project?hl=en >>>> --- >>>> APE Project (Ajax Push Engine) >>>> Official website : http://www.ape-project.org/ >>>> Git Hub : http://github.com/APE-Project/ >>> >>> >>> -- >>> You received this message because you are subscribed to the Google >>> Groups "APE Project" group. >>> To post to this group, send email to ape-project@googlegroups.com >>> To unsubscribe from this group, send email to >>> ape-project+unsubscr...@googlegroups.com >>> For more options, visit this group at >>> http://groups.google.com/group/ape-project?hl=en >>> --- >>> APE Project (Ajax Push Engine) >>> Official website : http://www.ape-project.org/ >>> Git Hub : http://github.com/APE-Project/ >> >> -- >> You received this message because you are subscribed to the Google >> Groups "APE Project" group. >> To post to this group, send email to ape-project@googlegroups.com >> To unsubscribe from this group, send email to >> ape-project+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/ape-project?hl=en >> --- >> APE Project (Ajax Push Engine) >> Official website : http://www.ape-project.org/ >> Git Hub : http://github.com/APE-Project/ > > > -- > You received this message because you are subscribed to the Google > Groups "APE Project" group. > To post to this group, send email to ape-project@googlegroups.com > To unsubscribe from this group, send email to > ape-project+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/ape-project?hl=en > --- > APE Project (Ajax Push Engine) > Official website : http://www.ape-project.org/ > Git Hub : http://github.com/APE-Project/ -- You received this message because you are subscribed to the Google Groups "APE Project" group. To post to this group, send email to ape-project@googlegroups.com To unsubscribe from this group, send email to ape-project+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/ape-project?hl=en --- APE Project (Ajax Push Engine) Official website : http://www.ape-project.org/ Git Hub : http://github.com/APE-Project/