6afd9c97 by Michael Richards

Merge branch 'jquery-object-support'

2 parents db1c574d 4d2f8966
......@@ -75,6 +75,9 @@
this.bindingRegExp = __bind(this.bindingRegExp, this);
if (this.el.jquery) {
this.el = this.el.get(0);
}
this.build();
}
......
......@@ -52,6 +52,7 @@ class Rivets.View
# The parent DOM element and the model objects for binding are passed into the
# constructor.
constructor: (@el, @models) ->
@el = @el.get(0) if @el.jquery
@build()
# Regular expression used to match binding attributes.
......