src/apis/jquery.js
function patchEvents($el) {
    $.each(EVENT_PROPERTIES, function(eventName, properties) {
        $el.on(eventName, function(event) {
            if (event.originalEvent) {
                properties.forEach(function(propertyName) {
                    event[propertyName] = event.originalEvent[propertyName];
                });
            }
        });
    });
}
function patchEvents($el) {
    $.each(EVENT_PROPERTIES, function(eventName, properties) {
        $el.on(eventName, function(event) {
            if (event.originalEvent) {
                properties.forEach(function(propertyName) {
                    event[propertyName] = event.originalEvent[propertyName];
                });
            }
        });
    });
}
function patchEvents ( $el ) { $ . each ( EVENT_PROPERTIES , function ( eventName , properties ) { $el . on ( eventName , function ( event ) { if ( event . originalEvent ) { properties . forEach ( function ( propertyName ) { event [ propertyName ] = event . originalEvent [ propertyName ] ; } ) ; } } ) ; } ) ; }
create event listeners that will copy the custom properties from the native events to the jQuery events, so jQuery users can use them seamlessly
create event listeners that will copy the custom properties from the native events to the jQuery events so jQuery users can use them seamlessly