code: function( attributes ) {
  		var result = {},
  			$element = this;
  		$.each(attributes.split(/\s/), function( index, value ) {
  			result[value] = $element.attr(value);
  			$element.removeAttr(value);
  		});
  		return result;
  	}
docs: attributes: space separated list of attributes to retrieve and remove