You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Great plugin. I've used it a bunch. I found a bug though that will completely disable the plugin.
The gist is that within a resize trigger, when you unbind a resize event for a later bound resize event, loopy still try's to check the unbound one and it no longer has the needed data.
I've fixed the code (just check that data exists before accessing it) on my machine and have included it here:
functionloopy(){// Start the polling loop, asynchronously.timeout_id=window[str_setTimeout](function(){// Iterate over all elements to which the 'resize' event is bound.elems.each(function(){varelem=$(this),width=elem.width(),height=elem.height(),data=$.data(this,str_data);// If element size has changed since the last time, update the element// data store and trigger the 'resize' event.if(data&&(width!==data.w||height!==data.h)){elem.trigger(str_resize,[data.w=width,data.h=height]);}});// Loop.loopy();},jq_resize[str_delay]);};
The text was updated successfully, but these errors were encountered:
GerHobbelt
pushed a commit
to GerHobbelt/jquery-resize
that referenced
this issue
Oct 31, 2013
Great plugin. I've used it a bunch. I found a bug though that will completely disable the plugin.
The gist is that within a resize trigger, when you unbind a resize event for a later bound resize event, loopy still try's to check the unbound one and it no longer has the needed data.
I've fixed the code (just check that data exists before accessing it) on my machine and have included it here:
The text was updated successfully, but these errors were encountered: