Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: third_party/flot/jquery.flot.resize.min.js

Issue 10679009: Revision to CPM UI using Flot and JQuery (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Final small fixes Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/flot/jquery.flot.pie.min.js ('k') | third_party/flot/jquery.flot.selection.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (function(n,p,u){var w=n([]),s=n.resize=n.extend(n.resize,{}),o,l="setTimeout",m ="resize",t=m+"-special-event",v="delay",r="throttleWindow";s[v]=250;s[r]=true;n .event.special[m]={setup:function(){if(!s[r]&&this[l]){return false}var a=n(this );w=w.add(a);n.data(this,t,{w:a.width(),h:a.height()});if(w.length===1){q()}},te ardown:function(){if(!s[r]&&this[l]){return false}var a=n(this);w=w.not(a);a.rem oveData(t);if(!w.length){clearTimeout(o)}},add:function(b){if(!s[r]&&this[l]){re turn false}var c;function a(d,h,g){var f=n(this),e=n.data(this,t);e.w=h!==u?h:f. width();e.h=g!==u?g:f.height();c.apply(this,arguments)}if(n.isFunction(b)){c=b;r eturn a}else{c=b.handler;b.handler=a}}};function q(){o=p[l](function(){w.each(fu nction(){var d=n(this),a=d.width(),b=d.height(),c=n.data(this,t);if(a!==c.w||b!= =c.h){d.trigger(m,[c.w=a,c.h=b])}});q()},s[v])}})(jQuery,this);(function(b){var a={};function c(f){function e(){var h=f.getPlaceholder();if(h.width()==0||h.heig ht()==0){return}f.resize();f.setupGrid();f.draw()}function g(i,h){i.getPlacehold er().resize(e)}function d(i,h){i.getPlaceholder().unbind("resize",e)}f.hooks.bin dEvents.push(g);f.hooks.shutdown.push(d)}b.plot.plugins.push({init:c,options:a,n ame:"resize",version:"1.0"})})(jQuery);
OLDNEW
« no previous file with comments | « third_party/flot/jquery.flot.pie.min.js ('k') | third_party/flot/jquery.flot.selection.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698