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