Created
June 3, 2011 13:23
-
-
Save tim-evans/1006330 to your computer and use it in GitHub Desktop.
SC.ContainerView bug
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
MyApp = {}; | |
MyApp.ContainerView = SC.ContainerView.extend({ | |
nowShowing: 'MyApp.GreetingView', | |
init: function () { | |
var ret = arguments.callee.base.apply(this, arguments); | |
// I need this line ------------. | |
// to have `nowShowing` update v | |
// this.notifyPropertyChange('nowShowing'); | |
return ret; | |
} | |
}); | |
MyApp.GreetingView = SC.LabelView.extend({ | |
value: 'Well, hi there!' | |
}); | |
MyApp.mainPane = SC.MainPane.create(); | |
MyApp.mainPane.appendChild(MyApp.ContainerView.create()); | |
MyApp.mainPane.append(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment