(function(){"use strict";function t(t){function i(t){t.each(function(){var t=$$(this);var i=t.width();var e=t.height();var a=200;function o(){if(!t||!t.length||!t.data("doPollSize")){return}var n=t.height();var r=t.width();var h={width:r!==i,height:n!==e};if(h.width||h.height){i=r;e=n;t.trigger("resize",h)}t.data("doPollSizeTimeout",setTimeout(o,a))}o()})}t.event.special.resize={setup:function(){if(this["setTimeout"]){return false}var t=$$(this);t.each(function(){$$(this).data("doPollSize",true)});i(t)},teardown:function(){if(this["setTimeout"]){return false}$$(this).each(function(){var t=$$(this);t.removeData("doPollSize");clearTimeout(t.data("doPollSizeTimeout"))})}}}u8.Base._Window.extend("resize",function(i){var e=i.$;if(e){t(e)}})})();