User:Monster Domosed/common.js: Difference between revisions

No edit summary
No edit summary
Line 425: Line 425:
             currentTarget = anchor;
             currentTarget = anchor;
             var cacheKey = type + ':' + name;
             var cacheKey = type + ':' + name;
            // Update tooltip classes based on type
            tt.removeClass( 'ability-tooltip item-tooltip' );
            if ( type === 'ability' ) {
                tt.addClass( 'ability-tooltip' );
            } else if ( type === 'item' ) {
                tt.addClass( 'item-tooltip' );
            }


             // Already cached — show immediately
             // Already cached — show immediately