1. #1
    Sencha User hobophobik's Avatar
    Join Date
    Jul 2010
    Location
    UK
    Posts
    22
    Vote Rating
    0
    hobophobik is on a distinguished road

      0  

    Question Arguments variable in the Constructor Model

    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

  3. #3
    Sencha User hobophobik's Avatar
    Join Date
    Jul 2010
    Location
    UK
    Posts
    22
    Vote Rating
    0
    hobophobik is on a distinguished road

      0  

    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

Thread Participants: 1

Tags for this Thread