Skip to content

Instantly share code, notes, and snippets.

@djfarrelly
Created May 11, 2015 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save djfarrelly/a17088472fc21f68ca88 to your computer and use it in GitHub Desktop.
Save djfarrelly/a17088472fc21f68ca88 to your computer and use it in GitHub Desktop.
QueueController idea
/* globals React */
var Timeline = require('../shared/views/timelineReact.js');
var QueueHeader = require('../shared/views/queueHeader.js');
// buffer.View.CalendarPending
var QueueController = module.exports = {
_data: {
view: 'list'
},
_stores: {
profile: null,
pendingUpdates: null,
sentUpdates: null
},
_views: {
// hold reference to any views needed
},
render: function(profileId, $element) {
this._stores.profile = buffer.data.profiles.get(profileId);
this.$el = $element;
// render the react view and setup event listeners
},
close: function() {
// any cleanup of backbone views or other events
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment