code: function (styles) {
  				if (styles) {
  					var textStyles = {};
  					styles = merge(styles); // create a copy to avoid altering the original object (#537)
  					each(['fontSize', 'fontWeight', 'fontFamily', 'color', 'lineHeight', 'width', 'textDecoration', 'textShadow'], function (prop) {
  						if (styles[prop] !== UNDEFINED) {
  							textStyles[prop] = styles[prop];
  							delete styles[prop];
  						}
  					});
  					text.css(textStyles);
  				}
  				return baseCss.call(wrapper, styles);
  			}
docs: Pick up some properties and apply them to the text instead of the wrapper