bgrins / ExpandingTextareas

jQuery plugin for elegant expanding textareas
http://bgrins.github.com/ExpandingTextareas/
MIT License
261 stars 73 forks source link

Adding support for CommonJS and AMD registration. #9

Closed Zoramite closed 12 years ago

Zoramite commented 12 years ago

Allows for registration as a CommonJS module or registration with an AMD, such as RequireJS.

Falls back to the browser global jQuery object.

bgrins commented 12 years ago

I fetched this from your branch, and it looks like you removed the commonjs definition. Is this intended?

Zoramite commented 12 years ago

Yeah, mostly it was from the discussion here: https://gist.github.com/1344389

From one of @jrburke comments:

"I just added a version that does not do optional CommonJS registration, since jQuery is unlikely to run in those environments"

It made the addition a little smaller so I decided to remove it.