> But not every browser supports hasOwnProperty. Safari doesn't. Does IE 5.5?
>
> In the "Object.prototype is verboten" article someone posted a comment with
> code to implement object.hasOwnProperty, but the code isn't exactly speedy.
> (And it has one bug - it should use === for the comparison
> > 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
> > mscros
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
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 t
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 th
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
> > 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 thi
hi stephen,i'd guess the offending line is in mscross: Object.prototype.objRef = null;handle event has changed from using a i=0;ii'd guess that the extra iterable (objRef) is causing problems in the newer handle event.
hope that helps. (and hi from a fellow Mapserver/GIS user)-brentOn 10/8/06, Step
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 - http://imaptools.com:8081/
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 wh
10 matches
Mail list logo