-
6 Apr 2012 10:21 AM #1
Loosing listener after popping
Loosing listener after popping
Hi, here is what I have, am not sure is my mistake or a bug:
1. create a main app with controller and view etc.
2. add a container, auto-created from a reference in the main controller
3. push this container at a certain moment and listening to one of its button tap events
what happens
1. the reference is set to autocreate, so I push it to the navigationview, works good, the container pops, the event of the button tap is sent to the controller
2. I pop out this container
3. I push it again and the event is not catched anymore in the controller, however, I added a local event to the button, and AFTER the first push the event is triggered in the local button events.
I want to be able to catch this event form the controller all the times as normal. I get the feeling somewhere the autocreate / autodestroy clear my listeners or something. Please help.
Thanks.
-
6 Apr 2012 10:57 AM #2
Getting back with the project example, please help!!!
Getting back with the project example, please help!!!
Check out the attachment.
-
6 Apr 2012 2:14 PM #3
Hi, thanks for posting. The .xds file alone doesn't hold the data needed to open your project, could you please send us an archive of your entire project directory so we can open it? Thanks.
Jason Johnston
@lojjic
Sencha Architect Development Team
-
6 Apr 2012 3:08 PM #4
Yeah sorry about that, forgot about the metadata :D
Yeah sorry about that, forgot about the metadata :D
Here is the archive with my example. Thanks guys! (btw... I could not add it in .tgz format. What kind of limitation is that?) :o)
-
6 Apr 2012 4:59 PM #5
Thanks, I see the issue you are talking about. This doesn't seem to be particular to using Designer, so I've moved it into the Touch 2.x forum so that the Touch team can take a look at your example.
Jason Johnston
@lojjic
Sencha Architect Development Team
-
6 Apr 2012 5:01 PM #6
jjohnston
jjohnston
Thanks, I will follow it there... I mean here

-
9 Apr 2012 5:56 AM #7Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,714
- Vote Rating
- 438
I recommend against the usage of id. There are much better ways to resolve components using ComponentQuery. For instance replace id with action : 'test' on your button and updating the controller to use 'button[action=test] it will work no problems.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
9 Apr 2012 8:46 AM #8Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
We'll take a look at it.
-
9 Apr 2012 10:22 AM #9
Here is my workaround for this too:
- I actually reassigned the tap events to the buttons just after I used them the first time and I am keep assigning them after every use... lame, I know, but efficient, at least it works.
- You should check your "single" property, looks to me it triggers even tho is not set... just thinking loud here...
You found a bug! We've classified it as
TOUCH-2702
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.


Reply With Quote