12-22-2012 12:20 AM
Do you have any suggestions on where should we put the application scope initiation code?
These code should only be invoked the first time user enter the app, but not each time when navigate to a new page.
I am using bbUI and currently tried to put it in the webworksready listener in my index.html
Is it supposed to be invoke only once or will be invoked each time when I refresh the screen using bb.pushScreen?
I notice it was triggerred multiple times, so that's not what I would like to achieve.
Any other event listener could I use to put my "Application scope only once per start initiation" ?
Appreciate for any suggestion or comment.
Solved! Go to Solution.
01-10-2013 09:52 AM
This happens actually because of the bug of ripple, that webworks ready callback was triggerred twice.
So ideally this will not be an issue.