[Proto-Scripty] removeEventListener: 22 lines, 22 hours, 0 solution

2011-04-07 Thread alexflex25
Hi I d'ont understand why this code don't work properly. var essai = Class.create(); essai.prototype = { initialize : function(texte){ this.texte = texte; document.addEventListener(click,this.callThisMethod.bind(this),false);

[Proto-Scripty] Re: removeEventListener: 22 lines, 22 hours, 0 solution

2011-04-07 Thread T.J. Crowder
Hi, Every time you call `bind`, a *new* function is created. To remove an event listener, you have to give `removeEventListener` a reference to the *same function* that you gave `addEventListener`. (Chaque fois que vous appelez `bind`, une *nouvelle* fonction est créée. Pour supprimer un

[Proto-Scripty] Firefox 4.0 autocompleter?

2011-04-07 Thread Joschi Cassel
A previously working autocompleter has since stopped working after an update to the latest firefox 4. Has anyone else had this problem? Tried a clean page with just prototype and script.aculo.us with the same result. Best regards, Joschi -- You received this message because you are subscribed

[Proto-Scripty] Re: Firefox 4.0 autocompleter?

2011-04-07 Thread Joschi Cassel
Hurray! I had ?xml version='1.0' encoding='ISO-8859-1'? as the first line in the response. Worked fine in previous browser version. Thanks. On Apr 7, 4:05 pm, Joschi Cassel josch...@gmail.com wrote: A previously working autocompleter has since stopped working after an update to the latest