how to update global variable in titanium?
问题 i'm having some problem in updating my array which is global by the way. here is my code: Ti.App.dinercolor=["#FF5A00","#007EFF","#dccdc0","#C2FF95","#A700FD","#dccdc0","#dccdc0","#5F9EA0","#dccdc0","#dccdc0","#22A000","#DCCDC0","#dccdc0","#FF003C","#dccdc0","#FF003C","#dccdc0","#22A000","#dccdc0","#FFF191"]; thats my global array which i can access data from it from anywhere in the application. the problem comes when i want to update the array like: for(var q=0; q<Ti.App.dinercolor.length; q