These are chat archives for reflux/refluxjs

26th
Sep 2015
KL Tah
@ee7klt
Sep 26 2015 00:40
In trigger('event',...) is event a reserved keyword? If not, does this mean that trigger understands only one event, viz the change of data on the server side?
KL Tah
@ee7klt
Sep 26 2015 01:51

```var Api = require('../utils/api')
var Reflux = require('reflux')

module.exports = Reflux.createStore ({
getTopics: function () {
return Api.get('topics/defaults')
.then(function(json) {
this.topics = json.data;
this.triggerChange();
}.bind(this))
},
triggerChange: function() {
this.trigger('change', this.topics);
}
})
```