var React = require('react'),
    glimpse = require('glimpse');

module.exports = React.createClass({
    _applicationAdded: function() {
        this.forceUpdate();
    },
    componentDidMount: function() {
        this._applicationAddedOn = glimpse.on('shell.application.added', this._applicationAdded);
    },
    componentWillUnmount: function() {
        glimpse.off(this._applicationAddedOn);
    },
    render: function() {
        return (
            <div className="application-holder">
                {this.props.applications}
            </div>
        );
    }
});

var React = require('react'),
    glimpse = require('glimpse'),
    EmitterMixin = require('../../lib/components/emitter-mixin.jsx');

module.exports = React.createClass({
    mixins: [ EmitterMixin ],
    componentDidMount: function() {
        this.addListener('shell.application.added', this._applicationAdded);
    },
    render: function() {
        return (
            <div className="application-holder">
                {this.props.applications}
            </div>
        );
    },
    _applicationAdded: function() {
        this.forceUpdate();
    }
});

Switch shell view over to using event emitter mixin
Switch shell view over to using event emitter mixin
