Add ability for Tips to set visible title

Review Request #1244 - Created Nov. 19, 2010 and updated

Marcus McLaughlin
Add methods to set visible title/text on Tips.
Add documentation.
Add ability for Tips to be given strings to use as content.
Add check for document fragment parentNode.

  1. for changes to More, please use github pull requests. You'll want to issue that request against the 1.2x branch. Also if there are spaces here instead of tabs, you'll be shot down.
  2. Source/Interface/Tips.js (Diff revision 1)
    I don't think this works. It means that if you set your tips value to "alt" and there isn't an alt your title will be "alt". For your use case, just set the option to be a function if you want it to do something different.
  3. Source/Interface/Tips.js (Diff revision 1)
    I don't think you need this either. I'd rather you do:
    if (!this.tip.parentNode || document.body.hasChild(this.tip))
  4. Source/Interface/Tips.js (Diff revision 1)
    seems like maybe other changes in the class would make this work better. in the elementEnter class you could define this._titleElement or something and skip running this selector.
  5. Source/Interface/Tips.js (Diff revision 1)