Le mardi 8 décembre 2009 15:43, T.J. Crowder a écrit :
this._navButtons.each(function(item) {
_opacity(item, ...);
});
The problem is to give additionnal params (for Effect.Oppacity); it
does not seem to be possible with each(). That's why I tried
invoke()...
Hi,
this._navButtons = [this._view.prevButton,
this._view.nextButton,
this._view.hideButton);
I assume in your real code, that ends with `]`, not with `)` as above?
As above, it's a syntax error.
this._navButtons.invoke(_opacity, {'from': 0,
Le mardi 8 décembre 2009 10:07, T.J. Crowder a écrit :
I assume in your real code, that ends with `]`, not with `)` as above?
As above, it's a syntax error.
this._navButtons.invoke(_opacity, {'from': 0,
'to': 1,
Le mardi 8 décembre 2009 10:36, T.J. Crowder a écrit :
First check that scripty hasn't already done that (without the
underscore). Scripty methodizes effects (at least sometimes, I don't
know the details), so that (for instance) Effect.Fade can be used as a
#fade method on element instances.
Hi,
this._navButtons.each(function(item) {
_opacity(item, ...);
});
The problem is to give additionnal params (for Effect.Oppacity); it does not
seem to be possible with each(). That's why I tried invoke()...
Look again at my example. You'd fill in the ... with the