Re: [jQuery] jquery update causes js error

2006-10-09 Thread Klaus Hartl
Michael Geary schrieb: From: Stephen Woodbridge [EMAIL PROTECTED] http://imaptools.com:8081/maps/demo2.html From: Brent Pedersen i'd guess the offending line is in mscross: Object.prototype.objRef = null; Good catch. It's strictly verboten to add to Object.prototype. That will break

Re: [jQuery] jquery update causes js error

2006-10-09 Thread Stephen Woodbridge
Michael and Brent, Thank you very much! That was it. Any idea why that would have been done in the first place? I ran into another issue that all my for loops in code I added to mscross were returning a null objRef at the end of the loop and I had to add code to detect that and break out of

Re: [jQuery] jquery update causes js error

2006-10-09 Thread Klaus Hartl
Stephen Woodbridge schrieb: Michael and Brent, Thank you very much! That was it. Any idea why that would have been done in the first place? I ran into another issue that all my for loops in code I added to mscross were returning a null objRef at the end of the loop and I had to add

Re: [jQuery] jquery update causes js error

2006-10-09 Thread Brent Pedersen
it looks like mscross had objRef to maintain the scope he wanted. (though he didn't need to extend Object.prototype). in jquery when you attach an event, this in a callback refers to the html element that was clicked or mouseover-ed etc. in his lib, he is saving a reference to an html element in

Re: [jQuery] jquery update causes js error

2006-10-09 Thread Michael Geary
Thank you very much! That was it. [Object.prototype.objRef = null;] Any idea why that would have been done in the first place? Probably because the person who wrote that code didn't know any better! I ran into another issue that all my for loops in code I added to mscross were

Re: [jQuery] jquery update causes js error

2006-10-08 Thread Stephen Woodbridge
Hi again, Still having a problem with this. I could really use a hand. This is reproducible on IE6, FF 1.5.0.7, Opera 8.5.4, and Opera 9.0.2. I also just tried it with jQuery-1.0.2-rc2.js and get the same behavior. Opera 8.5.4 and 9.0.2 Error messages: JavaScript -

Re: [jQuery] jquery update causes js error

2006-10-08 Thread Brent Pedersen
hi stephen,i'd guess the offending line is in mscross: Object.prototype.objRef = null;handle event has changed from using a i=0;iel.length;i++ type loop to a for i in c style loop.i'd guess that the extra iterable (objRef) is causing problems in the newer handle event. hope that helps. (and hi

Re: [jQuery] jquery update causes js error

2006-10-08 Thread Michael Geary
From: Stephen Woodbridge [EMAIL PROTECTED] http://imaptools.com:8081/maps/demo2.html From: Brent Pedersen i'd guess the offending line is in mscross: Object.prototype.objRef = null; Good catch. It's strictly verboten to add to Object.prototype. That will break all kinds of things, not

[jQuery] jquery update causes js error

2006-10-07 Thread Stephen Woodbridge
Hi all, New to jquery and list, but I looked through the archives and didn't see anything that help. I have a page that is working under jquery.js /* Built Fri May 12 13:01:23 2006 */ * $Rev: 29 $ but I upgraded to jquery-latest.js and todays jquery-svn.js and both of these give me an error