src/openseadragon.js
function( element, className ) {
            var oldClasses,
                newClasses = [],
                i;

            element = $.getElement( element );
            oldClasses = element.className.split( /\s+/ );
            for ( i = 0; i < oldClasses.length; i++ ) {
                if ( oldClasses[ i ] && oldClasses[ i ] !== className ) {
                    newClasses.push( oldClasses[ i ] );
                }
            }
            element.className = newClasses.join(' ');
        }
function( element, className ) {
            var oldClasses,
                newClasses = [],
                i;

            element = $.getElement( element );
            oldClasses = element.className.split( /\s+/ );
            for ( i = 0; i < oldClasses.length; i++ ) {
                if ( oldClasses[ i ] && oldClasses[ i ] !== className ) {
                    newClasses.push( oldClasses[ i ] );
                }
            }
            element.className = newClasses.join(' ');
        }
function ( element , className ) { var oldClasses , newClasses = [ ] , i ; element = $ . getElement ( element ) ; oldClasses = element . className . split ( / \s+ / ) ; for ( i = 0 ; i < oldClasses . length ; i ++ ) { if ( oldClasses [ i ] && oldClasses [ i ] !== className ) { newClasses . push ( oldClasses [ i ] ) ; } } element . className = newClasses . join ( ' ' ) ; }
Remove the specified CSS class from the element.
@function
@param {Element|String} element
@param {String} className
Remove the specified CSS class from the element .