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 1x 3x 4x | var Reflux = require('reflux'); var MarkdownSelectionActions = require('../actions/MarkdownSelectionActions'); var MarkdownSelectionStore = Reflux.createStore({ init: function() { this.listenTo(MarkdownSelectionActions.selectionSet, this.handleSelectionSet); this.listenTo(MarkdownSelectionActions.selectionCleared, this.handleSelectionCleared); }, handleSelectionCleared: function() { this.trigger({type: 'clear'}); }, handleSelectionSet: function() { this.trigger({type: 'set'}); } }); module.exports = MarkdownSelectionStore; |