SHARE
TWEET

Untitled

a guest Sep 7th, 2014 545 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var testActivit   = require('./testActivit.js');
  2. var blankFunction = function() {};
  3.  
  4. module.exports = {
  5.   componentWillMount: function() {
  6.     testActivit.addChangeListener(this.activitStateChange || blankFunction);
  7.   },
  8.   componentWillUnmount: function() {
  9.     testActivit.removeChangeListener(this.activitStateChange || blankFunction);
  10.   },
  11.   setActivitState: function(name, value) {
  12.     testActivit.set(name, value);
  13.   },
  14.   getActivitState: function(name) {
  15.     return testActivit.get(name);
  16.   }
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top