File "jquery.flot.resize.min.js"

Full Path: /home/warrior1/public_html/languages/wp-content-20241001222009/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.resize.min.js
File size: 1.14 KB
MIME-type: text/plain
Charset: utf-8

!function(o,i,s){var n,h=o([]),a=o.resize=o.extend(o.resize,{}),u="setTimeout",r="resize",d=r+"-special-event",c="delay",f="throttleWindow";a[c]=250,a[f]=!0,o.event.special[r]={setup:function(){if(!a[f]&&this[u])return!1;var t=o(this);h=h.add(t),o.data(this,d,{w:t.width(),h:t.height()}),1===h.length&&function e(){n=i[u](function(){h.each(function(){var t=o(this),e=t.width(),i=t.height(),n=o.data(this,d);e===n.w&&i===n.h||t.trigger(r,[n.w=e,n.h=i])}),e()},a[c])}()},teardown:function(){if(!a[f]&&this[u])return!1;var t=o(this);h=h.not(t),t.removeData(d),h.length||clearTimeout(n)},add:function(t){if(!a[f]&&this[u])return!1;var r;function e(t,e,i){var n=o(this),h=o.data(this,d);h.w=e!==s?e:n.width(),h.h=i!==s?i:n.height(),r.apply(this,arguments)}if("function"==typeof t)return r=t,e;r=t.handler,t.handler=e}}}(jQuery,this),jQuery.plot.plugins.push({init:function(e){function i(){var t=e.getPlaceholder();0!=t.width()&&0!=t.height()&&(e.resize(),e.setupGrid(),e.draw())}e.hooks.bindEvents.push(function(t,e){t.getPlaceholder().on("resize",i)}),e.hooks.shutdown.push(function(t,e){t.getPlaceholder().off("resize",i)})},options:{},name:"resize",version:"1.0"});