Javascript Objects & Titanium
Hi have some general questions about best practices when coding for titanium.
- Does titanium have problems with object oriented javascript? For example
~~~
var data = {
color: 'red',
size: 5.5,
returnInfo: function() {
return this.color;
}
};
~~~
Does Titanium manage memory for you? In Obj C you must alloc and release objects, what happens in Titanium?
My application seems to work with SDK 3.1.3 but not 3.2 when using Titanium. Are there some general differences that I need to be aware of?
Thanks in advance!
2 Answers
-
- yes
- yes, but may be a good practice to close or remove the windows, views, elements you don't need it anymore.
- maybe somebody from the stuff can give you an answer
-
I know that it is an old discussion but I’d love to start it again. Actually I didn���t find anything clear enough about best practices developing Javascript for Titanium. Maybe I didn’t look for it correctly. I’ve been reading “JavaScript: The Good Parts” again, but exists another different recommendation regarding Titanium development?