message: Ready for events
diff: @@ -77,6 +77,7 @@ export default class WebGLRenderer extends Renderer {
  this.container = container;
  this.elements = {};
  this.contexts = {};
  + this.listeners = {};
  this.nodeArray = null;
  this.nodeIndicesArray = null;
  @@ -121,6 +122,9 @@ export default class WebGLRenderer extends Renderer {
  mouse: new MouseCaptor(this.elements.mouse, this.camera)
  };
  + // Binding event handlers
  + this.bindEventHandlers();
  +
  // Loading programs
  for (const k in this.nodePrograms)
  this.nodePrograms[k].load(this.contexts.nodes);
  @@ -170,13 +174,25 @@ export default class WebGLRenderer extends Renderer {
  * @return {WebGLRenderer}
  */
  bindCameraHandlers() {
  - this.camera.on('updated', () => {
  +
  + this.listeners.camera = () => {
  this.sigma.scheduleRefresh();
  - });
  + };
  +
  + this.camera.on('updated', this.listeners.camera);
  return this;
  }
  + /**
  + * Method binding event handlers.
  + *
  + * @return {WebGLRenderer}
  + */
  + bindEventHandlers() {
  +
  + }
  +
  /**
  * Method used to process the whole graph's data.
  *
  