Reputation: 2738
In titanium appcelerator we can add single external js file to our window as follow
var win = Ti.UI.createWindow({
url:'myfile.js'
})
Can we add multiple js file to window?
Upvotes: 0
Views: 104
Reputation: 995
The url
property of Ti.UI.Window was deprecated long ago, maybe 2 years ago. It was a terrible implementation back in the day. You should not be using it.
If you won't want to use the Alloy framework, you should be creating windows as CommonJS modules where you export a window reference or a method to open the window. There are examples of this in the guides.
Upvotes: 2