0
votes

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?

1
Why you want multiple js file ? - abada henno
I just want to know is it possible? - Divyesh Savaliya
For my info No ! But if you want you can use Alloy instead classic and you can use Rquire tag - abada henno
Okey..thanks for your reply - Divyesh Savaliya

1 Answers

2
votes

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.