Page 1 of 1

Bug report - 1.0.0 - removeEventListener

Posted: 13 Dec 2012, 12:33
by osc23
Hello all,

Found a small problem with this...

Code: Select all

SFS2X.EventDispatcher.prototype.removeEventListener = function (a, b)
{
	var c = this.listenersByEvent[a];
	if (null != listenersByEvent)
	{
		for (var d = 0; d < c.length; d++)
		{
			if (c[d].listener === b)
			{
				c.splice(d, 1);
				break
			}
		}
	}
};
I believe this should be if(null != c)

Thanks

osc23

Re: Bug report - 1.0.0 - removeEventListener

Posted: 17 Dec 2012, 10:30
by Bax
Thank you for reporting. We just published a new version fixing this bug.