Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member Elijah's Avatar
    Join Date
    Nov 2009
    Location
    USA
    Posts
    382
    Vote Rating
    0
    Elijah is on a distinguished road

      0  

    Exclamation [CLOSED]I believe the ext-all.js and ext-all-debug.js need to check for dom and style

    [CLOSED]I believe the ext-all.js and ext-all-debug.js need to check for dom and style


    Starting from my thread in the other section, http://www.sencha.com/forum/showthre...sues.-NOW-what
    I think the ext-all.js file is missing a verification check.

    I used the ext-all-debug.js file to try and figure out what was going on and being that my code was only generating a context menu and when the user moused away from it rather than to it it would consistently throw a JS error. Though the error does not break any other functionality still having an error message in the browser corner does not look good to the client.

    Please see the thread listed above.

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    21
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Adding a verification check at this low level will only serve to mask the true root of the problem. If you have a stack trace (IE8 includes this) you should be able to find what method was passing the offending data and fix the problem there instead of treating the end error message.

  3. #3
    Ext JS Premium Member Elijah's Avatar
    Join Date
    Nov 2009
    Location
    USA
    Posts
    382
    Vote Rating
    0
    Elijah is on a distinguished road

      0  

    Default


    Okay I found the culprit.
    Thanks for the tip with IE8 I'll look into that.
    Code:
                    listeners:{
                        mouseout: function(thisMenu, thisMenuEvtObj, thisMenuItem){
                            var mouseX = thisMenuEvtObj.getXY()[0];
                            var mouseY = thisMenuEvtObj.getXY()[1];
                            // if the mouse is moved within 1 px or outside of the X bounding area destroy menu
                            if( mouseX <= (menuX+1) ||
                                    mouseX >= ((menuX-1) + thisMenu.getWidth())
                            ){
                                this.destroy();
                                return; // I needed this here to prevent the Y check from occurring. Without it I get the errors.
                            }
                            // if the mouse is moved within 1 px or outside of the Y bounding area destroy menu
                            if( mouseY <= (menuY+1) ||
                                    mouseY >= ((menuY-1) + thisMenu.getHeight())
                            ){
                                this.destroy();
                                return;
                            }
                        }
                    }

Similar Threads

  1. Replies: 3
    Last Post: 26 Apr 2010, 2:14 PM
  2. Replies: 3
    Last Post: 4 Sep 2009, 6:53 AM
  3. Replies: 2
    Last Post: 13 May 2009, 2:30 AM
  4. [CLOSED][2.2.1] difference between ext-all.js and ext-all-debug.js
    By mathieu_rochette in forum Ext 3.x: Bugs
    Replies: 1
    Last Post: 27 Apr 2009, 2:50 AM

Thread Participants: 1