Divyesh Savaliya
Divyesh Savaliya

Reputation: 2738

Titanium appcelerator window add multiple url

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

Answers (1)

skypanther
skypanther

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

Related Questions