colour.js
function applyTheme(theme) {
        Object.keys(theme).forEach(function(prop) {
            if (prototypeBlacklist.indexOf(prop) >= 0) {
                return;
            }
            if (typeof theme[prop] == 'string') {
                // Multiple colours white-space seperated #45, e.g. "red bold", #18
                theme[prop] = theme[prop].split(' ');
            }
            addProperty(prop, function () {
                var ret = this;
                for (var t=0; t<theme[prop].length; t++) {
                    ret = colour[theme[prop][t]](ret);
                }
                return ret;
            });
        });
    }
function applyTheme(theme) {
        Object.keys(theme).forEach(function(prop) {
            if (prototypeBlacklist.indexOf(prop) >= 0) {
                return;
            }
            if (typeof theme[prop] == 'string') {
                // Multiple colours white-space seperated #45, e.g. "red bold", #18
                theme[prop] = theme[prop].split(' ');
            }
            addProperty(prop, function () {
                var ret = this;
                for (var t=0; t<theme[prop].length; t++) {
                    ret = colour[theme[prop][t]](ret);
                }
                return ret;
            });
        });
    }
function applyTheme ( theme ) { Object . keys ( theme ) . forEach ( function ( prop ) { if ( prototypeBlacklist . indexOf ( prop ) >= 0 ) { return ; } if ( typeof theme [ prop ] == 'string' ) { // Multiple colours white-space seperated #45, e.g. "red bold", #18 theme [ prop ] = theme [ prop ] . split ( ' ' ) ; } addProperty ( prop , function ( ) { var ret = this ; for ( var t = 0 ; t < theme [ prop ] . length ; t ++ ) { ret = colour [ theme [ prop ] [ t ] ] ( ret ) ; } return ret ; } ) ; } ) ; }
Applies a theme.
@param {!Object} theme Theme to apply
Applies a theme .