Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Ti.tokyo.GIG 2012

2,009 views

Published on

Ti.tokyo.GIG 2012, Ryutaro Miyashita Lightning Talk.

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

Ti.tokyo.GIG 2012

  1. 1. Titanium Mobile ! ! @ryugoo_ http://imthinker.net/
  2. 2. Titanium MobileJavaScript
  3. 3. JavaScriptPrototype
  4. 4. Function
  5. 5. function  hoge()  {}var  hoge  =  function()  {};var  hoge  =  new  Function();
  6. 6. //  Application  Namespacevar  jsTest  =  {   exec  :  function()  {     //  Start  Time     var  startTime  =  (new  Date).getTime();     //  Craete  Function     for(var  i  =  0;  i  <  10000000;  i++)  {       //  DEFINE  FUNCTION     }     //  End  Time     var  endTime  =  (new  Date).getTime();     alert(endTime  -­‐  startTime);   }};//  ExecutejsTest.exec();
  7. 7. Titanium Mobile [ms] iOS 111 1084 40787 1089 11172 UnknownSafari Mobile [ms] iOS 125 922 Unknown 182 9631 Unknown
  8. 8. Function Declaration !!
  9. 9. ECMA-262 ECMA
  10. 10. if(true)  {   //  Noooooooooo!!!!   function  hoge()  {}   //  Excellent!!!!   var  hoge  =  function()  {};}
  11. 11. JavaScript 1.5 JavaScript 1.5+
  12. 12. Function Expression Statements
  13. 13. Enjoy Titanium Life ! Ti !

×