1. #1
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Boca Raton, FL
    Posts
    94
    Vote Rating
    1
    jimmifett is on a distinguished road

      0  

    Default array of arguments vs named arguments

    So, array vs named, which is the preferred methodology by ExtJS?

    With named, are all values required arguments?

    Do values not listed with the specified parameters (extra params) get passed as well, or does it fail trying to locate the method?

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,385
    Vote Rating
    498
    scottmartin is a jewel in the rough scottmartin is a jewel in the rough scottmartin is a jewel in the rough scottmartin is a jewel in the rough

      0  

    Default

    JS uses positional parameters. You can of course send an object parameter with properties to simulate this.

    Regards,
    Scott.

Thread Participants: 1