'use strict';

var glimpse = require('glimpse');

module.exports = {
    addListener: function (event, listener) {
        if (!this.events) {
            this.events = {};
        }

        this.events[event] = glimpse.on(event, listener);
    },
    componentWillUnmount: function () {
        if (this.events) {
            for (var key in this.events) {
                glimpse.off(this.events[key]);
            }

            this.events = null;
        }
    }
};

@@ -384,24 +384,11 @@
 off(
-this.events%5B
 key
-%5D
 );%0A 

Fix bug in how events are unloaded