Created
October 19, 2011 10:15
-
-
Save jonnyreeves/1297898 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I'm not a great fan of this as it violates the Law of Demeter. | |
facade.registerMediator(new BalanceDisplayMediator(appView.profileDisplay.balanceComponent)); | |
facade.registerMediator(new ProfileDisplayMediator(appView.profileDisplay)); | |
// Perhaps it's better to register the 'BalanceDisplayMediator' inside the 'ProfileDisplayMediator' instead? :S |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment