Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

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

      0  

    Default SegmentedButton Listener - Button Object undefined

    SegmentedButton Listener - Button Object undefined


    hi everyone,
    i use the segmented-button example from the touch 2.0 documentation and noticed that the listener does not receive the button-object.

    The console prints "User toggled the 'undefined' button: on".
    Tested in Chrome & Safari on OSX.

    With Touch 1.1.1 this example works without an error so i guess its a bug, or am i doing something wrong?

    Code:
    var segmentedButton = new Ext.SegmentedButton({
                allowMultiple: true,
                items: [
                    {
                        text: 'Option 1'
                    },
                    {
                        text   : 'Option 2',
                        pressed: true        },
                    {
                        text: 'Option 3'
                    }
                ],
                listeners: {
                    toggle: function(container, button, pressed){
                        console.log("User toggled the '" + button.text + "' button: " + (pressed ? 'on' : 'off'));
                    }
                }
            });

    edit:
    calling button._text works

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough 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


    Sounds like a bug in the event params, we will look into it, thank you for the report.

  3. #3
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    aarnau is on a distinguished road

      0  

    Default


    Are there news about this bug?

    I cant detect what button is tapped.

    Thanks.

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough 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


    Are you still having the issue with PR3?

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    aarnau is on a distinguished road

      0  

    Default


    Yes, the console print undefined...

  6. #6
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Instead of button.text you should use button.getText() or button.initialConfig.text depending on what you require.

  7. #7
    Sencha User
    Join Date
    Nov 2011
    Posts
    14
    Vote Rating
    0
    aarnau is on a distinguished road

      0  

    Default


    with button.getText () works perfectly!!

    thanks.