Results 1 to 3 of 3

Thread: Arguments variable in the Constructor Model

  1. #1
    Sencha User hobophobik's Avatar
    Join Date
    Jul 2010
    Location
    UK
    Posts
    22

    Question Arguments variable in the Constructor Model

    Hello,

    I've been looking at the "Extending Ext for Newbies" Tutorial and have a fairly basic question...

    In the superclass constructor call to apply, where does the variable "arguments" come from?

    PHP Code:
    // MyPanel Extends Ext.Panel
    MyPanel Ext.extend(Ext.Panel, {
    //  constructor function
        
    constructor: function(config) {
            
    Ext.apply(this, { 
                
    // Put your pre-configured config options here
                
    width300,
                
    height300
            
    });
            
    MyPanel.superclass.constructor.apply(thisarguments);
        }
    }); 
    Cheers,
    Hobo

  2. #2
    Sencha User Animal's Avatar
    Join Date
    Mar 2007
    Location
    Bédoin/Nottingham
    Posts
    30,892

  3. #3
    Sencha User hobophobik's Avatar
    Join Date
    Jul 2010
    Location
    UK
    Posts
    22

    Default

    Perfect, thanks.

Similar Threads

  1. Variable number of fields inside a model
    By kortovos in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 27 Sep 2010, 4:14 AM
  2. Replies: 2
    Last Post: 17 Jun 2010, 6:53 AM
  3. Replies: 7
    Last Post: 9 Apr 2009, 10:17 AM
  4. Replies: 7
    Last Post: 9 Apr 2009, 10:17 AM
  5. Help! - How do you use arguments?
    By johnstontrav in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 May 2008, 3:41 PM

Tags for this Thread

Posting Permissions

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