Results 1 to 2 of 2

Thread: array of arguments vs named arguments

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Sencha Premium Member
    Join Date
    Feb 2009
    Location
    Boca Raton, FL
    Posts
    94
    Vote Rating
    1
      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,388
    Vote Rating
    499
      0  

    Default

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

    Regards,
    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •