refactored sections

This commit is contained in:
Senad Uka
2015-01-27 06:53:42 +01:00
parent c8a399b98f
commit f27c29fccf
7 changed files with 188 additions and 45 deletions

View File

@@ -0,0 +1,29 @@
var AppDispatcher = require('../dispatcher/appDispatcher');
var SectionConstants = require('../constants/sectionConstants');
// Define action methods
var SectionActions = {
loadSections: function() {
AppDispatcher.handleAction({
actionType: SectionConstants.LOAD_SECTIONS
})
},
setSectionHover: function(section) {
AppDispatcher.handleAction({
actionType: SectionConstants.SET_SECTION_HOVER,
section: section
})
},
unsetSectionHover: function() {
AppDispatcher.handleAction({
actionType: SectionConstants.UNSET_SECTION_HOVER
})
}
};
module.exports = SectionActions;