flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject [FLEXJS] RemoveEventListener
Date Fri, 02 Jan 2015 20:37:18 GMT
Erik (and others).

Do we know for sure whether removeEventListener works for FlexJS with
goog.bind()?  I think I just stepped into it and it didn’t work because
for code like this:

      e.addEventListener(“foo", goog.bind(this.handler, this));
      <more code>
      e.removeEventListener(“foo", goog.bind(this.handler, this));

goog.bind() will return a different “closure” on the second call to
goog.bind() so it won’t be found as a listener.


View raw message