removeEventListener removes a listener that exactly matches the added function.
In this case, the function added by addEventListener was:
var some_func = function(ev) { self.onInputMove(ev); };
Keep a link to the actual function and you will be good. So, for example, the following should work:
someDom.addEventListener('mousemove',self.onInputMove,false); someDom.removeEventListener('mousemove',self.onInputMove,false);
Sean vieira
source share