When I use this.$el in my backbone.js app, firebug always tells me this.$el is not defined. I have to switch to $(this.el) to refer to the jquery element. Is there any difference between these two methods?
When I use this.$el in my backbone.js app, firebug always tells me this.$el is
Share
(I’m assuming you are referring to the
$elattribute onBackbone.Viewobjects)I had a similar problem that was because I was using an older version of Backbonethat did not support the
$elattribute onBackbone.Viewobjects. Try upgrading Backbone.js to 0.9 or greater.