Closed iamdanfox closed 11 years ago
I don't see any problem with adding change to the listeners. Can you file a PR?
On Sep 14, 2013, at 1:30 AM, iamdanfox notifications@github.com wrote:
Could we listen to the 'change' event too?
— Reply to this email directly or view it on GitHub.
This doesn't completely solve the problem (as discussed in issue #23) but it does make the usage simpler.
You can now silently update content with $('textarea').val('new content')
and trigger resizes with $('textarea').val('more new content').change()
.
This behaves the same as the following:
$('textarea').val('even more content').expandingTextarea('resize')
Examples: http://jsfiddle.net/CnRhG/ and http://jsfiddle.net/CnRhG/1/
Could we include this in the README?
Yes, we can definitely add this to the README. So you are saying that with this commit, you will be able to do:
$('textarea').val('more new content').change()
I think that is an improvement over the current syntax.
Yep, that's right. You can play with it in the jsfiddle if you like
Could we solve this by listening to the 'change' event?