generator/yuidoc2tern.js
function(yuiType, c) {
    var index = yuiType.indexOf(c);
	if (index != -1) {
	  yuiType = yuiType.substring(0, index);
	  yuiType = yuiType.trim();
	}
	return yuiType;
  }
function(yuiType, c) {
    var index = yuiType.indexOf(c);
	if (index != -1) {
	  yuiType = yuiType.substring(0, index);
	  yuiType = yuiType.trim();
	}
	return yuiType;
  }
function ( yuiType , c ) { var index = yuiType . indexOf ( c ) ; if ( index != - 1 ) { yuiType = yuiType . substring ( 0 , index ) ; yuiType = yuiType . trim ( ) ; } return yuiType ; }
YUI -> Tern type
YUI - > Tern type