Try to maximize and then unmaximize window for at least 10 times (same minimize/unminimize). You'll get performance degradation. Chrome's debugger show me looping through minimize/unminimize methods.
Possibly, you should use bind/unbind methods, not click or dblclick.
I mean using
.unbind('click').bind('click',function(event){self.minimize(event); return false;});
for your
.click(function(event){self.minimize(event); return false;});
Try to maximize and then unmaximize window for at least 10 times (same minimize/unminimize). You'll get performance degradation. Chrome's debugger show me looping through minimize/unminimize methods.
Possibly, you should use bind/unbind methods, not click or dblclick.
I mean using
.unbind('click').bind('click',function(event){self.minimize(event); return false;});
for your
.click(function(event){self.minimize(event); return false;});