Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

"Ti" vs. "Titanium" prefix

Hi,

is there a difference? Somettimes you see code around starting with Ti.xyz and soemtimes Titanium.xyz.

  1. What is the difference?
  2. Can you switch between those 2?

Is there any advantage of Ti besides less characters :-) ?

THX
Czar

— asked November 11th 2010 by Czar
  • prefix
  • ti
  • titanium
0 Comments

2 Answers

  • Accepted Answer

    Ti is just an alias to the Titanium namespace. They are synonymous, and you can interchange them freely. Personally, I prefer using Ti, but it's up to you.

    — answered November 11th 2010 by Paul Dowsett
    permalink
    0 Comments
  • It should also be noted that Ti does NOT work inside a webview, but Titanium does.

    — answered November 10th 2011 by Jason Yeates
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.