Difference between revisions of "Javascript properties"

From John Freier
Jump to: navigation, search
(Created page with 'List all the properties of a Titanium Javascript element. for(var prop in e) { if ((typeof e)=="function") { Ti.API.log(prop + ":function"); …')
(No difference)

Revision as of 14:06, 12 December 2013

List all the properties of a Titanium Javascript element.

 for(var prop in e) {
 		
      if ((typeof e)=="function") {
 			
           Ti.API.log(prop + ":function");
 			
      } else {
 
           Ti.API.log(prop + ":" + e[prop]);
 
      }
 }