Results 1 to 2 of 2

Thread: [FIXED-544]Problem with setLoading(false)

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Nov 2010

    Default [FIXED-544]Problem with setLoading(false)

    I have a that listen to beforeload and datachanged. On beforeload I setLoading(true, false) and on datachanged i reset it with setLoading(false).

    The loading of the store is triggered from a text field so if you type quickly in the field the events happend many times. This sometimes causes the following error message in safari on windows.
    TypeError: Result of expression 'this.loadMask' [null] is not an object.
    The reason for this problem is that this.loadMask can be null when you run destroy() on it.

    One possible solution would be to make sure this.loadMask exist before you do destroy.
        setLoading : function(load, targetEl) {
            if (this.rendered) {
                if (load) {
                    this.loadMask = this.loadMask || new Ext.LoadMask(targetEl ? this.getTargetEl() : this.el, Ext.applyIf(Ext.isObject(load) ? load : {}));
                else if(this.loadMask) {
                    this.loadMask = null;
            return this.loadMask;
    Tested in Sencha Touch version 1.0RC1.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    This has been fixed for the next release, thanks for the report.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. [FIXED-1219] slider.dragging is always false
    By fujirou in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 18 Aug 2010, 11:00 AM
  2. Replies: 3
    Last Post: 1 Mar 2010, 11:32 PM
  3. [FIXED-106][2.x,3.x] SSL_SECURE_URL shows false
    By Condor in forum Ext 3.x: Bugs
    Replies: 4
    Last Post: 23 Aug 2009, 9:54 PM
  4. Replies: 1
    Last Post: 26 Jun 2009, 2:59 AM
  5. [FIXED] Popup.setAutoHide(false) does not work
    By Maxim.Zakharenkov in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 26 Nov 2008, 6:31 AM

Posting Permissions

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