So type sniffing then?
On Mar 4, 2014 11:54 PM, "Jeremy Ashkenas" <notifications@github.com> wrote:

> In backbone.js:
>
> >      // Change the view's element (`this.el` property), including event
> >      // re-delegation.
> > -    setElement: function(element, delegate) {
> > -      if (this.$el) this.undelegateEvents();
> > -      this.$el = element instanceof Backbone.$ ? element : Backbone.$(element);
> > -      this.el = this.$el[0];
> > +    setElement: function(element, delegate, attributes) {
>
> Yes. The delegate boolean in the middle is nasty.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/jashkenas/backbone/pull/3003/files#r10276679>
> .
>