jamespadolsey/jQuery.fn.autoResize — pull request #8 by pivotal-casebook (2011-10-19 19:17:37+00:00)
Title: Add a guard to prevent autoresizing a text area that has already been autoresized

We have a web app where text areas appear in some ajax panels, and to ensure they are autoresizable we need to reinitialize autoresize whenever an ajax call finishes. This resulted in multiple autoresize instances for every text area and left each text area with multiple bindings.

After some time this causes the browser to slow down.

We've added a guard which looks at the AutoResize data attribute and stops autoResize from being initialized if a text area is already autoresizeable.