Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

navigator.pushView() Problems

Community Beginner ,
Feb 08, 2011 Feb 08, 2011

I having problems with navigator.pushView(MyView), and problem is - it creates all the time NEW instance of the MyView!!!??

I do navigator.pushView(MyView), it switches to MyView, the I hit back button, then navigator.pushView(MyView) again, and the object reference is new! But thing is that OLD MyView view still exists and receiving events, it messing up stuff!!!

Any suggestions?

TOPICS
Development
1.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 12, 2011 Feb 12, 2011

It sounds like something outside of MyView is keeping a hard reference

to it so it is not getting garbage collected. It could also be the

destruction policy in MyView is set to "never".

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 02, 2011 Mar 02, 2011
LATEST

Yes ans I figured out and now it works

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines