Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1950] Mobile Web-specific code doesn't get used

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-19T18:20:36.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsregression, triage
ReporterBek Bay
AssigneeRitu Agrawal
Created2013-01-27T22:12:45.000+0000
Updated2016-03-08T07:40:52.000+0000

Description

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'

Comments

  1. Bek Bay 2013-01-28

    Only with SDK 3.0.0GA, works with 2.x
  2. Ingo Muschenetz 2013-03-19

    Chris, thoughts?
  3. Chris Barber 2013-03-19

    I can't reproduce a problem here. Everything works as expected.
  4. Ritu Agrawal 2014-01-12

    [~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?

JSON Source