From 4ad12bcd0ae296efa9f55be3d37347bf6544cfc7 Mon Sep 17 00:00:00 2001 From: Joss Crowcroft <@josscrowcroft> Date: Tue, 31 Jan 2012 17:18:16 +0800 Subject: [PATCH] Return `this` from View.setElement --- backbone.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backbone.js b/backbone.js index d6a0aa9e..c5c55158 100644 --- a/backbone.js +++ b/backbone.js @@ -1031,6 +1031,7 @@ this.$el = $(element); this.el = this.$el[0]; if (delegate !== false) this.delegateEvents(); + return this; }, // Set callbacks, where `this.events` is a hash of