Skip to content

Commit

Permalink
Using api.getElement for fetching dom elements for Fx.Reveal.
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Sep 26, 2013
1 parent 0146e1d commit ce0c6d0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/Delegators/Delegator.FxReveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ name: Delegator.FxReveal
handler: function(event, link, api){
var targets;
if (api.get('target')){
targets = new Elements([link.getElement(api.get('target'))]);
if (!targets) api.fail('could not locate target element to ' + action, link);
targets = new Elements([api.getElement('target')]);
} else if (api.get('targets')){
targets = link.getElements(api.get('targets'));
if (!targets.length) api.fail('could not locate target elements to ' + action, link);
targets = api.getElements('targets');
} else {
targets = new Elements([link]);
}
Expand Down

0 comments on commit ce0c6d0

Please sign in to comment.