[Pkg-javascript-commits] [backbone] 156/281: Switched order of delegateEvents and initialize in Backbone.View constructor in order to allow for explicit setting of this.el in initialize (and ensure that events are bound correctly).
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:02:07 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.9.0
in repository backbone.
commit 478aaf3d000ff8d4b7f9d6c78d657f4e9904df65
Author: Mickey Reiss <mreiss at andrew.cmu.edu>
Date: Mon Jan 9 13:49:32 2012 -0500
Switched order of delegateEvents and initialize in Backbone.View constructor in order to allow for explicit setting of this.el in initialize (and ensure that events are bound correctly).
---
backbone.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backbone.js b/backbone.js
index 1234c06..019ee99 100644
--- a/backbone.js
+++ b/backbone.js
@@ -879,8 +879,8 @@
this.cid = _.uniqueId('view');
this._configure(options || {});
this._ensureElement();
- this.delegateEvents();
this.initialize.apply(this, arguments);
+ this.delegateEvents();
};
// Cached regex to split keys for `delegate`.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git
More information about the Pkg-javascript-commits
mailing list