Project: titanium
Issue TIMOB-7301: Android: JSS with import and js with include files not working
h3. Actual behavior Working with an app.js with an include an app.jss with a require, and adding labels to the window, those are not getting the styles dictated by the jss files h3. Expected behavior Jss working as used to work on 1.7.6 with the same structure h3. Files {code:title=app.js|borderStyle=solid} var gt = {}; gt.ui={}; Ti.include('/incs/incs.js'); gt.ui.makeWin = function(){	var win1 = Titanium.UI.createWindow({	backgroundColor:'#fff',	navBarHidden:true	});	var label1 = gt.ui.makeLabel('label1');	var label2 = gt.ui.makeLabel('label2');	win1.add(label1);	win1.add(label2);	return win1; }; var win = gt.ui.makeWin(); win.open();	{code} {code:title=app.jss|borderStyle=solid} @import 'lay/style.jss'; #label2 {	color:'#f0f';	text:'I am Window 2';	fontSize:40;	textAlign:'center';	height:80;	width:'auto'; } {code} {code:title=incs/incs.js|borderStyle=solid} Ti.API.info('Including the inc file'); gt.ui.makeLabel = function(id) {	var label = Titanium.UI.createLabel({	id:id,	className:'button'	});	return label; }; {code} {code:title=lay/style.jss|borderStyle=solid} #label1 {	color:'#f00';	top:0;	text-align:'center';	text:'I am label 1';	height:40;	width:'auto'; } .button {	background-color:'#00f'; } {code}
Story points: 5