I am using a plugin with this block of code. However i get this error
JQMIGRATE: jQuery.event.handle is undocumented and deprecated
* Reason: jQuery.event.handle has never been documented and deprecated with jQuery 1.7 (see http://forum.jquery.com/topic/deprecated-event-properties-used-in-jquery ). Starting with jQuery 1.9, it has been removed.
Decision. Use jQuery's documented APIs such as .trigger . *
handler: function( event, execAsap ) { // Save the context var context = this, args = arguments; // set correct event type event.type = "smartresize"; if ( resizeTimeout ) { clearTimeout( resizeTimeout ); } resizeTimeout = setTimeout(function() { jQuery.event.handle.apply( context, args ); //here }, execAsap === "execAsap"? 0 : 50 ); }
So this line will be changed to what?
jQuery.event.handle.apply( context, args );
source share