Created
May 11, 2015 19:36
-
-
Save djfarrelly/a17088472fc21f68ca88 to your computer and use it in GitHub Desktop.
QueueController idea
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
/* 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