karbassi/Custom-Form-Elements — pull request #12 by JaSpr (2012-05-06 03:50:38+00:00)
Title: added validation that skips events for elements disabled after initialization

When an element is marked as disabled ('.cfe-disabled') after initialization, the bindings aren't skipped unless .repaint() is run. When using a form with many (50+) elements, repaint() causes a heavy delay in Chrome (~1.5 seconds with all window frozen).

Adding a check within the bindings (just like the left mouse click checks) removes the need to repaint, and allows disabled elements to be skipped.