The set_Text(str) on tooltip only works before created. I had to write the code like this:
var temp = toolTip.get_contentElement();
if (temp)
temp.innerText = tip;
else
toolTip.set_Text(tip);
I would suggest that toolTip.set_Text works after content is created.
Thank you.