Looks like we cannot reproduce this. Please provide another test case to reproduce this issue.
  1. #1
    Sencha User
    Join Date
    Apr 2011
    Posts
    18
    Vote Rating
    1
    utkarshgaur is on a distinguished road

      0  

    Default [4.2.0-489] Ext.Component - setLoading generates error

    [4.2.0-489] Ext.Component - setLoading generates error


    I tried to update my app from 4.1 to 4.2.0-489 and a basic function - setLoading causes my app to crash.

    Sample code to reproduce error:

    Code:

    Code:
        var w = Ext.create('Ext.window.Window', {
            height : 400,
            width : 400,
        }).show();
        
        w.setLoading(true);
    Output:
    ext-all-debug.js:39929 : Cannot call method 'mask' of null

    Expected Output:

    A loading mask on the window.

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,645
    Vote Rating
    583
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    I can't reproduce this. I copied your code exactly against the 4.2.0-489 build, no errors and I see the mask show up. All I did was replace the contents of array-grid.html with your code, inside of an onReady block:

    Code:
    Ext.onReady(function() {
    
        var w = Ext.create('Ext.window.Window', {
            height: 400,
            width: 400
        }).show();
    
        w.setLoading(true);
    
    });
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Sencha User
    Join Date
    Apr 2011
    Posts
    18
    Vote Rating
    1
    utkarshgaur is on a distinguished road

      0  

    Default


    Sorry, someone in my team had overwritten the LoadMask class which was breaking. I'll delete this thread. Thanks for the quick reply though!

Thread Participants: 1

Tags for this Thread