(function(b,p,l){function g(){m=p[e](function(){c.each(function(){var a=b(this),c=a.width(),d=a.height(),j=b.data(this,h);if(c!==j.w||d!==j.h)a.trigger(f,[j.w=c,j.h=d])});g()},d[n])}"$:nomunge";var c=b([]),d=b.resize=b.extend(b.resize,{}),m,e="setTimeout",f="resize",h=f+"-special-event",n="delay";d[n]=250;d.throttleWindow=!0;b.event.special[f]={setup:function(){if(!d.throttleWindow&&this[e])return!1;var a=b(this);c=c.add(a);b.data(this,h,{w:a.width(),h:a.height()});1===c.length&&g()},teardown:function(){if(!d.throttleWindow&&
    this[e])return!1;var a=b(this);c=c.not(a);a.removeData(h);c.length||clearTimeout(m)},add:function(a){function c(a,d,e){var g=b(this),k=b.data(this,h);k||(k=b.data(this,h,{}));k.w=d!==l?d:g.width();k.h=e!==l?e:g.height();f.apply(this,arguments)}if(!d.throttleWindow&&this[e])return!1;var f;if(b.isFunction(a))return f=a,c;f=a.handler;a.handler=c}}})(jQuery,this);
