Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10340] BlackBerry: Titanium.include() method bug

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2013-06-03T23:00:49.000+0000
Affected Version/sRelease 3.1.1, Release 3.2.0
Fix Version/s2013 Sprint 12 BB, 2013 Sprint 12, Release 3.2.0
ComponentsBlackBerry
Labelsn/a
ReporterHayk Zakaryan
AssigneeJosh Roesslein
Created2012-08-08T07:33:05.000+0000
Updated2014-06-19T12:43:50.000+0000

Description

When trying to include several files separated by comma (as in KS example Titanium.include('/etc/my_js_include.js', '/etc/my_js_include_2.js', '/etc/local_include.js'); )only the first file is included. All files should be included

Test Case

Ti.include('a.js', 'b.js');
Place the following JavaScript into app.js and also create files a.js and b.js. Put some logs into a.js and b.js to verify they are both executed.

Comments

  1. Josh Roesslein 2013-06-03

    Created pull request [#72](https://github.com/appcelerator/titanium_mobile_blackberry/pull/72) for master.
  2. Priya Agarwal 2013-11-12

    Closing as fixed. Steps to test: 1) Added Ti.include('a.js', 'b.js'); in app.js file. 2) Added new a.js file with logs to be printed. (Ti.API.info('hello a.js included.');) 3)2) Added new b.js file with logs to be printed. (Ti.API.info('hello b.js included.');) Got both the logs printed in console after app launched. Tested Environment: Appcelerator Studio: 3.2.0.201311120707 SDK:3.2.0.v20131111174605 alloy: 1.3.0 acs: 1.0.7 npm: 1.3.2 titanium: 3.2.0 titanium-code-processor: 1.0.3 Xcode:5.0.1 Device: Blackeberry Z 10 OS: Mac OSX 10.9 BB OS 10.0.10.261

JSON Source