puremvc
|
|
« Reply #1 on: September 27, 2009, 08:08:45 » |
|
If a view component has 5 properties frip, frop, zip, zop, and plunk, then instead of having the view component's Mediator know and set all these properties, it's often easier to have a value object zoid that contains frip, frop, zip, zop, and plunk properties. This way the Mediator needs only to set the zoid property of the view component. It is also nice if a service needs to deal with these properties, the vo is a way of wadding up a bunch of related data and tossing it back and forth across the tiers of your app.
-=Cliff>
|