Signal.js Bug Fix 

I just found a bug on the dispatch function, damn this got me a lot of headaches without knowing. Replace the old with this one:

It’s necesary to make a copy of the listeners array because one listener might remove himself after the callback, affecting the original array, making the loop ignore the rest of the listeners. Little anoying mistake from my part, lol.

this.dispatch = function()    {

var currentListeners = [];

for( var i = 0; i<this.listeners.length; i++ )       {          currentListeners.push( this.listeners[i] ); }

for( i = 0; i<currentListeners.length; i++ )        {           currentListeners[i].apply( null, arguments );        }