forked from madrobby/zepto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Accept function as data for on event handler
Move the parameter data to callback, if callback is undefined or data is false. As the data can hold any type, including function, the check is done on the callback, to see if it is undefined, before moving the parameters. Fixes madrobby#1042
- Loading branch information
1 parent
28896e3
commit 508d190
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters