Thanks for this tip, I didnt know that
What about this fragment:
xhrRequestFake: function(e){
//now "this" is a <li> which I want to use to read id
from
itemManager.json = [{'key':'no'},{'key':'way!'}];
itemManager.createHTML();
}
Is it a good practice to call method like this itemManager.createHTML
(); instead of this.createHTML(); if I want to preserve 'this' as a
context of element from the event?
On 14 Lip, 19:16, mr_justin <[email protected]> wrote:
> > this.createHTML = this.createHTML.bind(this);
> > this.createHTML();
>
> There is no need to do that. Just use this.createHTML() straight away.
> The instance is already in the correct scope.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---