code: function( elem ) {
  			var tmplItem;
  			if ( elem instanceof jQuery ) {
  				elem = elem[0];
  			}
  			while ( elem && elem.nodeType === 1 && !(tmplItem = jQuery.data( elem, "tmplItem" )) && (elem = elem.parentNode) ) {}
  			return tmplItem || topTmplItem;
  		}
docs: Return rendered template item for an element.