code: function(span, baseClass, icon) {
  				var $span = $(span);
  
  				if (typeof icon === "string") {
  					$span.attr("class", baseClass + " " + icon);
  				} else {
  					// support object syntax: { text: ligature, addClasse: classname }
  					if (icon.text) {
  						$span.text("" + icon.text);
  					} else if (icon.html) {
  						span.innerHTML = icon.html;
  					}
  					$span.attr(
  						"class",
  						baseClass + " " + (icon.addClass || "")
  					);
  				}
  			}
docs: Set expander, checkbox, or node icon, supporting string and object format.
  
  @param {Element | jQueryObject} span
  @param {string} baseClass
  @param {string | object} icon
  @since 2.27