jupiterjs/steal — Issue #55: Infinite loop when building
Author: bsander
Created: 2011-11-30 09:20:46+00:00
State: open

When building a production version of my app using the build scripts generated by generate/app, and after I get an (already pretty cryptic) error message:

```javascript
timer error
function () {
_this.onreadystatechange();
}
TypeError: org.mozilla.javascript.Undefined@64811e10 is not a function, it is undefined.
```

I end up in an infinite loop which continuously generates error messages like this:

```javascript
timer error
function () {
for (var timers = jQuery.timers, i = 0; i < timers.length; ++i) {
if (!timers[i]()) {
timers.splice(i--, 1);
}
}
if (!timers.length) {
jQuery.fx.stop();
}
}
TypeError: Cannot find function removeAttribute in object [object CSS2Properties].
timer error
function () {
for (var timers = jQuery.timers, i = 0; i < timers.length; ++i) {
if (!timers[i]()) {
timers.splice(i--, 1);
}
}
if (!timers.length) {
jQuery.fx.stop();
}
}
TypeError: Cannot find function removeAttribute in object [object CSS2Properties].

...

```
and no build ever takes place. Same happens while running the generated docs.js script. I ran steal/update and jquery/update and this keeps on happening on the latest build.