Skip to content

Instantly share code, notes, and snippets.

@zxqx
Last active August 29, 2015 14:06
Show Gist options
  • Save zxqx/d44b40aac25ff0c678c6 to your computer and use it in GitHub Desktop.
Save zxqx/d44b40aac25ff0c678c6 to your computer and use it in GitHub Desktop.
/**
* 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