padolsey/jQuery.fn.autoResize — Issue #40: Using textareas with .each() and $(this)
Author: blowsie
Created: 2012-01-19 14:29:32+00:00
State: open

calbacks such as onAfterResize run on all selected elements.

Here is my example code

```
$('textarea').each(function () {
$(this).autoResize({
minHeight: 25,
extraSpace: 10,
onAfterResize: function (el) {
console.log($(this).height();)
}
});
});
```

This behaves unexpectedly, the console.log() logs all textares elements and not the one which has just been resized.
Tried crawling through the code to get to the button of the issue but had no luck. Any suggestions?