1. #1
    Sencha User
    Join Date
    Feb 2009
    Location
    Glasgow, Scotland
    Posts
    293
    Vote Rating
    5
    Stuart-SwarmOnline will become famous soon enough

      0  

    Default [BUG] toggleCls method throwing error [4.1 PR]

    [BUG] toggleCls method throwing error [4.1 PR]


    Hi Guys,

    Not sure what sort of reports you guys want as I know there are still known issues so ignore this if you have it covered!

    I have come across a small bug with the toggleCls method of the Ext.dom.AbstractElement class.

    It's just a small problem where the variable name doesn't match up.
    On line 11017 (of ext-all-debug.js):

    Code:
    dom.classList.toggle(name);
    ..should read:

    Code:
    dom.classList.toggle(className);
    Here's a drop-in override should anyone else come across this problem...

    Code:
    Ext.dom.AbstractElement.override({    toggleCls: Ext.supports.ClassList ?
            function (className) {
                var me = this,
                    dom = me.dom;
    
    
                if (dom) {
                    className = className.replace(/^\s+|\s+$/g, '');
                    if (className) {
                        dom.classList.toggle(className);
                    }
                }
    
    
                return me;
            } :
            function(className) {
                var me = this;
                return me.hasCls(className) ? me.removeCls(className) : me.addCls(className);
            }
    });
    Anyways, great work with the new release!

    Cheers
    Stuart

  2. #2
    Sencha - Ext JS Dev Team dongryphon's Avatar
    Join Date
    Jul 2009
    Posts
    1,338
    Vote Rating
    132
    dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all dongryphon is a name known to all

      0  

    Default


    Great bug report thanks! Fix applied
    Don Griffin
    Ext JS Development Team Lead

    Check the docs. Learn how to (properly) report a framework issue and a Sencha Cmd issue

    "Use the source, Luke!"

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi