code: function (property, store) {
  
        if (!isStore(store)) {
          throw new Error('Store expected');
        }
  
        var _this = this;
  
        store.onChange(function () {
          if (property) {
            _this.setState(property, store.state);
          } else {
            _this.setState(store.state);
          }
        });
  
        this.onReset(function () {
          store.resetState();
        });
  
        this.on('storeWillMount', function () {
          store.replaceProps(_this.props);
          store.emit('storeWillMount');
        });
  
        this.on('storeWillUnmount', function () {
          store.emit('storeWillUnmount');
          store.replaceProps(_this.props);
        });
  
        this.on('storeWillReceiveProps', function () {
          store.replaceProps(_this.props);
          store.emit('storeWillReceiveProps');
        });
      }
docs: .attachStore(property String, store Store) :void