Skip to content

Commit 966bb58

Browse files
quadulescottgonzalez
authored andcommitted
Fix multiclick event example
1 parent c197d3f commit 966bb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

page/events/event-extensions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ jQuery.event.special.multiclick = {
216216
// If a multiple of the click count, run the handler
217217
targetData.clicks = ( targetData.clicks || 0 ) + 1;
218218
219-
if ( targetData.clicks % event.data === 0 ) {
219+
if ( targetData.clicks % event.data.clicks === 0 ) {
220220
event.type = handleObj.origType;
221221
ret = handleObj.handler.apply( this, arguments );
222222
event.type = handleObj.type;

0 commit comments

Comments
 (0)