Ticket #6393 (reopened defect)
[patch][cla] Existing setTimeout implementation overwritten by hostenv_rhino.js
| Reported by: | guest | Owned by: | dylan |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.3 |
| Component: | TestFramework | Version: | 1.1.0 |
| Severity: | normal | Keywords: | |
| Cc: | jordi@… |
Description
When running within Rhino, the hostenv_rhino.js file defines implementations of setTimeout and clearTimeout. However, the code doesn't check if those functions have already been defined. So those implementations will shadow prior definitions.
Other frameworks used in Rhino may define their own implementation of setTimeout, clearTimeout, setInterval, etc. It would be great if Dojo did not overwrite any existing implementation.
Examples of other implementations of setTimeout for Rhino are:
The main difference being whether they use Java threads or an event pump to behave more like the browsers which are single threaded.
- Jordi Albornoz Mulligan
jordi@…