// hook file change events and send the modified image to the browser watcher.on('change', function(file) { //console.log('change >>> ', file); fs.readFile(file, function(err, imageData) { if (!err) { PubSub.publish('MJPEG', imageData); } else { console.log(err); } }); });
React.createClass({ handleClick: function() { PubSub.publish('PRODUCT_CLICKED', this.props.name); }, render: function() { return ( <div onClick={this.handleClick}>{this.props.name}</div> ); } })
}, handleBack: function() { this.token_BACKBUTTON_CLICK = PubSub.publish('BACKBUTTON_CLICK'); this.setState({ gathering: false,
}); if (rsp.status === "error" && rsp.error === "doublecheck") { PubSub.publish('POPUP_OPEN', { type: "custom", template: "RegistrationDoubleCheck",
if (rsp.status === "ok") { _.delay(function(session) { PubSub.publish('SESSION_CARE', session); }.bind(this), 500, rsp.session);
}); _.delay(function() { PubSub.publish('POPUP_CLOSE', 'RegistationDoubleCheck'); }.bind(this), 3000); } else { }, handleCancel: function(e) { PubSub.publish('POPUP_CLOSE', 'RegistationDoubleCheck'); }, handleClose: function(e) { PubSub.publish('POPUP_CLOSE', 'RegistationDoubleCheck'); }, renderButtons: function() {