Skip to content

Commit

Permalink
unregisterAllSubViews removed
Browse files Browse the repository at this point in the history
  • Loading branch information
amitkgupta committed Aug 18, 2012
1 parent 7de669d commit 411b7db
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
4 changes: 0 additions & 4 deletions Coccyx.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ _.extend(Backbone.View.prototype, {
delete this.subViews[subView.cid];
},

unregisterAllSubViews: function() {
_(this.subViews).each(this.unregisterSubView, this);
},

tearDown: function() {
if (this.__parentView) this.__parentView.unregisterSubView(this);
this._tearDown();
Expand Down
7 changes: 0 additions & 7 deletions spec/spec/CoccyxTearDownSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,12 +269,5 @@ describe('Coccyx', function() {
expect(view.otherSubView.modelChanges).toEqual(2);
});
});

describe('unregisterAllSubViews', function() {
it('should unregister all (registered) subviews', function() {
view.unregisterAllSubViews();
expect(view.subViews).toEqual({});
});
});
});
});

0 comments on commit 411b7db

Please sign in to comment.