From f222360cd454c96394fe9a12b33970b252048279 Mon Sep 17 00:00:00 2001 From: Raymond Julin Date: Sat, 26 May 2012 00:11:31 +0200 Subject: [PATCH] Advocate proper usage of $el over $(this.el) in documentation --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 9e7c6aed0..ff07ce82b 100644 --- a/index.html +++ b/index.html @@ -2302,7 +2302,7 @@

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 @@

Backbone.View

}, render: function() { - $(this.el).html(this.template(this.model.toJSON())); + this.$el.html(this.template(this.model.toJSON())); return this; },