bgrins / ExpandingTextareas

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

Non-jQuery version #63

Closed domchristie closed 7 years ago

domchristie commented 8 years ago

@bgrins I have been working on a version of this idea which does not depend on jQuery. It takes quite a different approach, but uses some of the ideas present in this repo.

Would you be happy for me to start a new repo with this new code and publish it to NPM?

bgrins commented 8 years ago

Cool, it's up to you how you want to proceed - if it has similar features / browser support I'd wouldn't be opposed to taking the changes into master on this repo but don't have any problem if you'd rather start it as a new project. I'm curious - what's the approach for the new version?

domchristie commented 8 years ago

Thanks!

I'm curious - what's the approach for the new version?

A summary of the differences:

I started writing this with a pull request in mind, but wonder if the diff might be a little difficult to review?

bgrins commented 8 years ago

The diff might be hard to review but feel free to send it over and we'll see what it ends up looking like.

What do you think about keeping a jQuery plugin registration that just calls out to new Expanding(textarea) to keep backwards compat?

domchristie commented 8 years ago

OK, cool. I'll try and get something together that makes a bit more sense, perhaps by rewriting some of the internal methods to use vanilla JS/DOM.

Re: keeping the jQuery plugin, yeh sounds good, and it is kind of what we're doing already. There is a bit of jQuery code to prevent the plugin from being reinitialised, but it should be fairly straightforward.

domchristie commented 7 years ago

Closed by https://github.com/bgrins/ExpandingTextareas/pull/64