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

navigator.pushView() Problems

Community Beginner ,
Feb 08, 2011 Feb 08, 2011

Copy link to clipboard

Copied

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

Views

1.3K

Translate

Translate

Report

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

Copy link to clipboard

Copied

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".

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Yes ans I figured out and now it works

Votes

Translate

Translate

Report

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