IE5 Scopes Incorrectly 
Author Message
 IE5 Scopes Incorrectly

twas a scoping problem - somehow, IE thought frameRegistry.register() (user
defined object, method) meant window.register() (user defined method in a
window).  the window method called the object method - but, actually the
window method just called itself until the stack overflowed - i've run into
this object scoping problem before:

object.toString()
    |
    |
    -  object.toString()
    |
    -object.toString()

All objects of the same type.  parent's toString() calls all children's
toString() - in theory.  in actuality, top-level object keeps calling it's
own toString() - even though the method is scoped by the specific object.

toString() {
    for (i=0; i<children.length; i++) {
        children[i].toString();
    }

Quote:
}

object keeps calling itself.  you can't tell me that's not a scoping problem
with the object model.

-Doug



Mon, 10 Mar 2003 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. ps2pdf converts color incorrectly

2. Zapf Dingbat prints incorrectly

3. Text overflows incorrectly...

4. Form Submitted Incorrectly

5. Scheduled script runs incorrectly

6. Text overflows incorrectly...

7. VBS Sign Extending Variables Incorrectly?

8. Two bugs in IE5 (though fixed in IE5.5)

9. Printing and ie5.0 vs ie5.5?

10. VBScript bug involving variable scope

11. setgray within the scope of a BuildChar

12. controlling scope

 

 
Powered by phpBB® Forum Software