Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-983 in a recent build.
  1. #1
    Sencha User
    Join Date
    May 2010
    Posts
    20
    Vote Rating
    0
    FidoX is on a distinguished road

      0  

    Default LIsten map events inside a controller

    LIsten map events inside a controller


    Hello, I can't be able to listen for the maprender event using the control() method inside a controller. It works for other events but not for the maprender. On the other side, if I listen for the event in the map object itself it works.

    This is the code that doesn't work:
    Code:
    Ext.define('Test.controller.MainController', {
        extend: 'Ext.app.Controller',
    
    
        init: function() {
            console.log('init controller');
    
    
            this.control({
                'map': {
                    maprender: function() {
                        console.log('the map render');
                    }
                }
            });
        }
    });
    
    
    Ext.application({
        name: 'Test',
        controllers: ['MainController'],
        
        launch: function() {
            
            Ext.create('Ext.Container', {
                layout: 'card',
                fullscreen: true,
                items: [{
                    xtype: 'map',
                }]            
            });
        }
    });
    Im using chrome to testing with Sencha Touch 2.0.0 Preview Release 1

    Anybody have the same issue?

    Greetings.

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    This is a bug with the Map component. The maprender event gets called when the component is constructed, which is incorrect. This also means that it gets called immediately, which is too late for the .control method in your controller.

  3. #3
    Sencha User
    Join Date
    May 2010
    Posts
    20
    Vote Rating
    0
    FidoX is on a distinguished road

      0  

    Default


    Ok, by now I can get it working using the activate event instead.

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    20
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This issue has been resolved for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi