Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bugfix for dataView

  • Loading branch information...
commit 40e5ed44a8fcf638e1cbe61dd00f7486ca4a90ac 1 parent cab36ba
@robrobbins robrobbins authored
Showing with 0 additions and 4 deletions.
  1. +0 −2  build/debug/sudo.js
  2. +0 −2  extras/dataview/dataview.js
View
2  build/debug/sudo.js
@@ -912,7 +912,6 @@ sudo.inherit(sudo.View, sudo.DataView);
// if not an autoRender (which will render on model change), as well as setup the events (in children too)
sudo.DataView.prototype.addedToParent = function(parent) {
this.bindEvents();
- this.eachChild('bindEvents');
// autoRender Dataviews should only render on model change
if(!this.model.data.autoRender) return this.render();
return this;
@@ -941,7 +940,6 @@ sudo.DataView.prototype.build = function build() {
sudo.DataView.prototype.removeFromParent = function removeFromParent(remove) {
this.parent.removeChild(this);
this.unbindEvents().$el[remove ? 'remove' : 'detach']();
- this.eachChild('unbindEvents');
return this;
};
// ###render
View
2  extras/dataview/dataview.js
@@ -36,7 +36,6 @@ sudo.inherit(sudo.View, sudo.DataView);
// if not an autoRender (which will render on model change), as well as setup the events (in children too)
sudo.DataView.prototype.addedToParent = function(parent) {
this.bindEvents();
- this.eachChild('bindEvents');
// autoRender Dataviews should only render on model change
if(!this.model.data.autoRender) return this.render();
return this;
@@ -65,7 +64,6 @@ sudo.DataView.prototype.build = function build() {
sudo.DataView.prototype.removeFromParent = function removeFromParent(remove) {
this.parent.removeChild(this);
this.unbindEvents().$el[remove ? 'remove' : 'detach']();
- this.eachChild('unbindEvents');
return this;
};
// ###render
Please sign in to comment.
Something went wrong with that request. Please try again.