Skip to content

Commit

Permalink
Call back created on sequence match now has access to event
Browse files Browse the repository at this point in the history
Fixing Issue #1 ( #1 )
applying of matched function now provides event information
  • Loading branch information
rheone committed Aug 20, 2013
1 parent 3260eee commit 61927ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jQuery.chord.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@
if ($this._sequenceMatch(sequence)) { // match found

if (typeof sequenceEntry.matched === 'function') { // if a function is to be called on match call it
sequenceEntry.matched.apply(e);
sequenceEntry.matched.apply(e, [e]);
}

// Event triggering. Create new event and associate appropriate values to it
Expand Down

0 comments on commit 61927ad

Please sign in to comment.