Last active
August 29, 2015 14:06
-
-
Save zxqx/d44b40aac25ff0c678c6 to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Set up container view | |
* Set up container subviews | |
*/ | |
StreamController.prototype.start = function() | |
{ | |
this.container = this.setupCommunityStream(); | |
this.setupHeader(); | |
this.setupNavigationBar(); | |
this.setupTopStreaming(); | |
this.setupSidebar(); | |
// Ensure all content is loaded before injecting container view | |
var _this = this; | |
Promise.all([this.sidebarLoaded]) | |
.then(function() { | |
_this.views.addView(_this.container); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment