ccoenraets / OpenFB

Micro-library that lets you integrate browser and Cordova apps with Facebook with no plugin or SDK dependency.
MIT License
505 stars 231 forks source link

Fix: listener for loadStop is not created but is trying removed #87

Open devmessias opened 8 years ago

devmessias commented 8 years ago

Before that commits the "loginwindow exitHandler ()" removed the loadStop listener, but the listener loadStop had not been created before. Therefore, causing an exception. To fix this I created a listener to the event within loadStop inside condition "if (running Cordova)". Also created a function loginwindow_loadStopHandler , which is executed when the loadStop event is called.