ios - Titanium Facebook module issue -


i'm using native facebook titanium module , have following issue.

in app, can login fb 2 different windows.

in first one, instatiated module , added module 'login' listener.

in second window did same, instantiated module , added 'login' listener.

problem following: second addeventlistener doesn't overwrite first (it looks second facebook 'require' pointer module instantiated in first window).

so, happens following: when try authorize user , enter login listener, turns out i'm calling first one, not second (the second never gets called).

i tried remove first eventlistener no luck. moreover, 'live' in distant windows , seems there's no way remove listener correctly.

any appreciated, iannis

i hope clarify seeing:

  • it's standard commonjs behaviour modules cached , second , following require() reference first instance.
  • like name says addeventlistener adds event listener , not replace 1 added earlier.

you should login event twice, once each event listener add. can't tell why doesn't without further insight in code.


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -