← Back to team overview

jessyink-team team mailing list archive

Re: updated the keyboard branch...

 

Hi!

You could save the slide number in the slides array, but since you have
> it when the event handler is assigned, you can put it there as a string.
> Something down the lines of:
>
> node.setAttribute("onmouseover", "if ((currentMode == INDEX_MODE) &&
> (activeSlide != " + counter + ")) { indexSetActiveSlide(" + counter +
> "); };");
>

I see what you did! Very neat! Require more memory maybe... but then it
saves one call... and doesn't require counter to be saved as an attribute...
tempting!

I'll give it a go.

Cheers,
Egor

References