Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-5063 in Touch 2.3.1 (38).
  1. #1
    Ext JS Premium Member cnelissen's Avatar
    Join Date
    Sep 2007
    Location
    California
    Posts
    215
    Vote Rating
    5
    cnelissen is on a distinguished road

      0  

    Default [2.3] Ext.form.Panel.submit scope problem

    [2.3] Ext.form.Panel.submit scope problem


    It seems there is a scope problem somewhere in the doBeforeSubmit function of Ext.form.Panel. If you submit a form and pass the current application scope to the submit() method, you get an error on line 656 of form/Panel.js. Here is a testcase showing the issue:

    PHP Code:
    Ext.application({
        
    launch: function() {
            
    this.formPanel Ext.Viewport.add({
                
    xtype'formpanel',
                
    items: [{
                    
    xtype'textfield',
                    
    name'name',
                    
    label'Name'
                
    },{
                    
    xtype'toolbar',
                    
    docked'bottom',
                    
    items: [{
                        
    text'Submit',
                        
    scopethis,
                        
    handler: function() {
                            
    this.formPanel.submit({
                                
    url'/some/backend/script.php',
                                
    scopethis // Passing scope here for success and failure functions
                            
    });
                        }
                    }]
                }]
            });
        }
    }); 
    The exact error is: Uncaught TypeError: Object [object Object] has no method 'setMasked'

    Line 656 reads: me.setMasked(false);

    Upon inspection, it seems "me" is an instance of the application (passed scope) and not an instance of the panel which is why this is erroring.

    This code works as expected under 2.2.1.
    - Clint Nelissen

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    2,882
    Vote Rating
    89
    fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice fmoseley is just really nice

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar