Skip to content

Commit

Permalink
Making add/removeClass delegator obey it's own target/targets docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
anutron committed Nov 22, 2013
1 parent aed106a commit ab84c94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Delegators/Delegator.AddRemoveClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: Delegator.AddRemoveClass
handler: function(event, link, api){
var target = link;

if (api.get('target')) target = api.getElements('target')
if (api.get('target')) target = api.getElement('target')
else if (api.get('targets')) target = api.getElements('targets');

target[action + 'Class'](api.get('class'));
Expand Down

0 comments on commit ab84c94

Please sign in to comment.