pass event through for $.on

This commit is contained in:
Martin Zimmermann 2014-03-27 09:53:07 +01:00
parent dd0837c0f7
commit 638ddc6359

View File

@ -32,7 +32,7 @@ define(function() {
by default, set :param prevents: to `false` to change that behavior.
*/
this.addEventListener(type, function(event) {
listener();
listener(event);
if (prevent === undefined || prevent) {
event.preventDefault();
}