Skip to content

Commit

Permalink
Rename 'splitting views' to 'delegate views'.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Feb 16, 2012
1 parent ac994ab commit 1cff953
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Expand Up @@ -483,14 +483,17 @@ App.ChromeView = Backbone.View.extend({
});
```
Splitting views
---------------
Delegate views
--------------
__The problem:__ Your view code is starting to bloat as it tries to do too many
things in one class, and making sub-views with its child elements is not an
option.
__The solution:__ Make a sub-view with the same element.
__The solution:__ Make a sub-view with the same element. This will allow you to
[delegate][delegate] certain responsibilities to another view class.
[delegate]: http://en.wikipedia.org/wiki/Delegation_pattern
### Solution
Expand Down

0 comments on commit 1cff953

Please sign in to comment.