Alternative to $.event.handle in 1.9.0
Hi,
I (rather foolishly) relied on two undocumented jQuery features to handle certain areas within the code. One of them was
$.attrFn
, which I have been able to fix by declaring it myself, but the other is a little more difficult, it is the
$.event.handler
.
The full code that no longer works is as follows:
- function triggerCustomEvent( obj, eventType, event ) {
- var originalType = event.type;
- event.type = eventType;
- $.event.handle.call( obj, event );
- event.type = originalType;
- }
How would I go about altering the code so that it continues to function as expected with jQuery 1.9.0+?
Thanks,
Ben.