Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 4x 4x 4x 4x 4x 4x | var Reflux = require('reflux'); var MarkdownEditorActions = require('../actions/MarkdownEditorActions'); var MarkdownEditorTabsInteractionStore = Reflux.createStore({ init: function() { this.listenTo(MarkdownEditorActions.clickPreviewTab, this.handleClickPreviewTab); this.listenTo(MarkdownEditorActions.clickEditorTab, this.handleClickEditorTab); }, handleClickPreviewTab: function() { this.trigger({activeTab: 1}); }, handleClickEditorTab: function() { this.trigger({activeTab: 0}); } }); module.exports = MarkdownEditorTabsInteractionStore; |