[TIMOB-4845] Require() Evaluates the file every time it is used
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-11-11T15:45:30.000+0000 |
| Affected Version/s | Release 1.7.2 |
| Fix Version/s | Sprint 2011-44, Release 1.8.0.1 |
| Components | iOS |
| Labels | n/a |
| Reporter | Rick Blalock |
| Assignee | Blain Hamon |
| Created | 2011-08-01T06:19:44.000+0000 |
| Updated | 2011-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.
http://wiki.commonjs.org/wiki/Modules/1.1#Related_Discussion
btw. I believe the Android team has this working in 1.8 so it could be relabel-led as a parity thing?
This will probably require an update to includes.js in drillbit. Read: Much more drillbit unit test joy.
version=1.8.0.1 timestamp=12/08/11 13:51 githash=99d7091 on iOS Simulator 5.0 ran include.js test all pass