dist/garnish.js
function(source, target) {
        var $source = $(source),
            $target = $(target);

        $target.css({
            fontFamily: $source.css('fontFamily'),
            fontSize: $source.css('fontSize'),
            fontWeight: $source.css('fontWeight'),
            letterSpacing: $source.css('letterSpacing'),
            lineHeight: $source.css('lineHeight'),
            textAlign: $source.css('textAlign'),
            textIndent: $source.css('textIndent'),
            whiteSpace: $source.css('whiteSpace'),
            wordSpacing: $source.css('wordSpacing'),
            wordWrap: $source.css('wordWrap')
        });
    }
function(source, target) {
        var $source = $(source),
            $target = $(target);

        $target.css({
            fontFamily: $source.css('fontFamily'),
            fontSize: $source.css('fontSize'),
            fontWeight: $source.css('fontWeight'),
            letterSpacing: $source.css('letterSpacing'),
            lineHeight: $source.css('lineHeight'),
            textAlign: $source.css('textAlign'),
            textIndent: $source.css('textIndent'),
            whiteSpace: $source.css('whiteSpace'),
            wordSpacing: $source.css('wordSpacing'),
            wordWrap: $source.css('wordWrap')
        });
    }
function ( source , target ) { var $source = $ ( source ) , $target = $ ( target ) ; $target . css ( { fontFamily : $source . css ( 'fontFamily' ) , fontSize : $source . css ( 'fontSize' ) , fontWeight : $source . css ( 'fontWeight' ) , letterSpacing : $source . css ( 'letterSpacing' ) , lineHeight : $source . css ( 'lineHeight' ) , textAlign : $source . css ( 'textAlign' ) , textIndent : $source . css ( 'textIndent' ) , whiteSpace : $source . css ( 'whiteSpace' ) , wordSpacing : $source . css ( 'wordSpacing' ) , wordWrap : $source . css ( 'wordWrap' ) } ) ; }
Copies text styles from one element to another.

@param {object} source The source element. Can be either an actual element or a jQuery collection.
@param {object} target The target element. Can be either an actual element or a jQuery collection.
Copies text styles from one element to another .