[Pkg-javascript-commits] [backbone] 49/211: Add attributes parameter to Backbone.View. All attributes are being applied to view's this.el during element creation.
Jonas Smedegaard
js at moszumanska.debian.org
Sat May 3 17:00:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag 0.5.0
in repository backbone.
commit c3da552f3b13957a22908abddeddb04f884c04a0
Author: Pavel Karoukin <pavel at yepcorp.com>
Date: Mon Jan 10 23:06:24 2011 -0600
Add attributes parameter to Backbone.View. All attributes are being applied to view's this.el during element creation.
---
backbone.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/backbone.js b/backbone.js
index d3e94b0..856f6d7 100644
--- a/backbone.js
+++ b/backbone.js
@@ -892,6 +892,7 @@
_ensureElement : function() {
if (!this.el) {
var attrs = {};
+ if (this.attributes) attrs = this.attributes;
if (this.id) attrs.id = this.id;
if (this.className) attrs['class'] = this.className;
this.el = this.make(this.tagName, attrs);
--
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