This issue duplicates another issue.
  1. #1
    Sencha User
    Join Date
    Aug 2012
    Location
    Fabrègues, France
    Posts
    48
    Vote Rating
    0
    gostbuster is an unknown quantity at this point

      0  

    Default Ext.device.notification.show with phonegap

    Ext.device.notification.show with phonegap


    REQUIRED INFORMATIONExt version tested:
    • Sencha Touch 2.1
    Browser versions tested against:
    • Packaged app android and iphone
    Description:
    • reference error : butons is undefined
    Steps to reproduce the problem:
    • foo
    • bar
    Check Phonegap.jshere is the code I found in this file
    Code:
        show: function() {        var config = this.callParent(arguments),
                buttons = (config.buttons) ? config.buttons.join(',') : null,
                onShowCallback = function(index) {
                    if (config.callback) {
                        config.callback.apply(config.scope, (config.buttons) ? [config.buttons[index - 1]].toLowerCase() : []);
                    }
                };
    
    
            // change Ext.MessageBox buttons into normal arrays
            var ln = butons.length;
            if (ln && typeof buttons[0] != "string") {
                var newButtons = [],
                    i;
    
    
                for (i = 0; i < ln; i++) {
                    newButtons.push(buttons[i].text);
                }
    
    
                buttons = newButtons;
            }
    
    
            navigator.notification.confirm(
                config.message, // message
                onShowCallback, // callback
                config.title, // title
                buttons // array of button names
            );
        },
    I think butons should be buttons....

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,677
    Vote Rating
    749
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    This has already been reported: http://www.sencha.com/forum/showthread.php?248789

    The fix will be part of the next release.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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 in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar