From f222360cd454c96394fe9a12b33970b252048279 Mon Sep 17 00:00:00 2001
From: Raymond Julin Backbone.View
var Bookmark = Backbone.View.extend({
render: function() {
- $(this.el).html(this.template(this.model.toJSON()));
+ this.$el.html(this.template(this.model.toJSON()));
return this;
}
});
@@ -2334,7 +2334,7 @@
Backbone.View
removeview.remove()
Convenience function for removing the view from the DOM. Equivalent to calling
- $(view.el).remove();
+ view.$el.remove();
@@ -2405,7 +2405,7 @@