waynehoover/s3_direct_upload — pull request #28 by lacco (2012-12-15 13:39:28+00:00)
Title: [ToDiscuss] Using $.widget ?

I started today using this awesome gem, it is much nicer than copying the Railscast code into each project. Additionally, the provided Javascript callbacks make it easy to adjust the plugin to some special needs.

Nevertheless, I felt that the callbacks were quite difficult to use (e.g. `before_add` in options while others using `bind`, and they have different names than the events from fileupload widget), so I started refactoring the client code into a `$.widget`. Do you have any thoughts on this? Of course it isn't backwards-compatible, but I think the API is much easier to use.