Problem
Building for MobileWeb doesn't use the mobileweb specific files which are located in the mobileweb directory
/Resources
/Logic
db.js
/mobileweb
/Logic
db.js
Test case
1. Create new Titanium Project with template "Single Window Application"
2. Create a db.js file in /Resources/ with content:
exports.initializeDB = function() {'use strict';
return 'Standard DB Initialized';
};
3. Create db.js file in /Resources/mobileweb/ with content:
exports.initializeDB = function() {'use strict';
return 'MobileWeb DB Initialized';
};
4. Use this file somewhere for UI
var db = require('/db');
var label = Ti.UI.createLabel({
color:'#000000',
text:db.initializeDB(),
height:'auto',
width:'auto'
});
5. Build for iOS and see text 'Standard DB Initialized'
6. Build for MobileWeb and see same text instead of 'MobileWeb DB Initialized'
Only with SDK 3.0.0GA, works with 2.x
Chris, thoughts?
I can't reproduce a problem here. Everything works as expected.
[~melbek] We have not been able to reproduce this issue. Can you please try out the latest release (3.2.0 GA) and let us know if the issue persists?