1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    Orlando, FL
    Posts
    83
    Vote Rating
    0
    jimmifett is on a distinguished road

      0  

    Default array of arguments vs named arguments

    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
    7,185
    Vote Rating
    194
    scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold scottmartin is a splendid one to behold

      0  

    Default


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

    Regards,
    Scott.