addEvent is not like each, that you can pass a bind parameter to it. Its planed to do this, but i dont know when.
Heres a working example: http://mootools.net/shell/BWLW3/2/ -- Fábio Miranda Costa Solucione Sistemas Engenheiro de interfaces On Sat, Feb 6, 2010 at 10:37 AM, cbolson <[email protected]> wrote: > Hi, > I am sure that this is a really basic problem but I am the first to > admit that I struggle when it comes to mootools Classes, especialy as > regards the "binding" :( > > I have set up a simple demo: > http://mootools.net/shell/BWLW3/1/ > > The problem I am having is that I seem to loose the reference to > "this" (eg this.options") within the click event (see comments in > code) > > I am getting this error in the consol: "this.contents is undefined" > I understand the error, I just can't seem to fix it :( > > Any help appreciated on what is probably a simple error. > > Thanks in advance, > > Chris >
