pass event through for $.on
This commit is contained in:
parent
dd0837c0f7
commit
638ddc6359
@ -32,7 +32,7 @@ define(function() {
|
|||||||
by default, set :param prevents: to `false` to change that behavior.
|
by default, set :param prevents: to `false` to change that behavior.
|
||||||
*/
|
*/
|
||||||
this.addEventListener(type, function(event) {
|
this.addEventListener(type, function(event) {
|
||||||
listener();
|
listener(event);
|
||||||
if (prevent === undefined || prevent) {
|
if (prevent === undefined || prevent) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user