Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4845] Require() Evaluates the file every time it is used

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-11-11T15:45:30.000+0000
Affected Version/sRelease 1.7.2
Fix Version/sSprint 2011-44, Release 1.8.0.1
ComponentsiOS
Labelsn/a
ReporterRick Blalock
AssigneeBlain Hamon
Created2011-08-01T06:19:44.000+0000
Updated2011-12-08T14:42:13.000+0000

Description

Using require() evaluates the file every time it is called. Require() should work so the module is only loaded once.

Comments

  1. Reggie Seagraves 2011-10-27

    http://wiki.commonjs.org/wiki/Modules/1.1#Related_Discussion
  2. Rick Blalock 2011-10-28

    btw. I believe the Android team has this working in 1.8 so it could be relabel-led as a parity thing?
  3. Blain Hamon 2011-10-28

    This will probably require an update to includes.js in drillbit. Read: Much more drillbit unit test joy.
  4. Natalie Huynh 2011-12-08

    version=1.8.0.1 timestamp=12/08/11 13:51 githash=99d7091 on iOS Simulator 5.0 ran include.js test all pass

JSON Source