Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var testActivit = require('./testActivit.js');
- var blankFunction = function() {};
- module.exports = {
- componentWillMount: function() {
- testActivit.addChangeListener(this.activitStateChange || blankFunction);
- },
- componentWillUnmount: function() {
- testActivit.removeChangeListener(this.activitStateChange || blankFunction);
- },
- setActivitState: function(name, value) {
- testActivit.set(name, value);
- },
- getActivitState: function(name) {
- return testActivit.get(name);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement