Skip to content

Commit

Permalink
not using the element setter for Fx.Reveal so that it doesn't reset t…
Browse files Browse the repository at this point in the history
…he state of the class.
  • Loading branch information
anutron committed Apr 26, 2013
1 parent e5d6284 commit 46554f9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Source/Delegators/Delegator.FxReveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,12 @@ name: Delegator.FxReveal
targets = new Elements([link]);
}

var fxOptions = api.get('fxOptions');
if (fxOptions) targets.set('reveal', fxOptions);
targets.get('reveal');
var fxOptions = api.getAs(Object, 'fxOptions');
if (fxOptions){
targets.each(function(target){
target.get('reveal').setOptions(fxOptions);
});
}
if (action == 'toggleReveal') targets.get('reveal').invoke('toggle');
else targets[action]();
if (!api.getAs(Boolean, 'allowEvent')) event.preventDefault();
Expand Down

0 comments on commit 46554f9

Please sign in to comment.