-
Notifications
You must be signed in to change notification settings - Fork 232
Remove jQuery logic branching #777
Comments
No-jQuery worked fine for me for a long time. I don't know what we really need from this method |
I'm saying that with Backbone adding NativeView solution is more flexible than an all-or-nothing jQuery or no jQuery branching. Just use native methods for everything except events, which uses |
sounds reasonable. we can remove them and test how many tests are passing withbb |
I pulled in Backbone from my view-native-hooks branch and got rid of the the delegate and undelegate methods from Chaplin. The delegate tests pass with only two issues (one relating to throwing), and two
|
BB#3003 is merged, closing in favor of #780 |
@molily @paulmillr @mehcode Backbone#3003 is about to land in master, bringing with it a new
delegate
method on View, which will allow us to get rid of some of the jQuery logic branching. Is there anything else you think needs to get added to Backbone to help Chaplin reduce some code around its jQuery dependency?I think we should always operate with native DOM methods on on the view's
el
property unless the jQuery method is significantly better in older browsers and rewriting code to target the older browsers would be too much of a pain.Also, do we need an
undelegate
method?Layout
uses it for click handling. If we do, how many of jQuery's features do we need to support as a baseline here?The text was updated successfully, but these errors were encountered: