[Answering my own question:]
That would be a bummer. We use hasOwnProperty a bit (for exactly
this purpose) and would need a work-around. This almost does it:
Object.hasOwnProperty = function (prop) {
var proto = this.constructor.prototype[prop];
return prop in proto ? this[prop] !== proto[prop] : prop in this;
}
Hm. http://tinyurl.com/qnkej indicates that it is supported in
JScript 5.6. Phew!
On 2006-05-17, at 17:31 EDT, P T Withington wrote:
> [From the dojo mailing list]
>
>> Date: Mon, 15 May 2006 18:41:35 CDT
>> From: Tom Trenka <[EMAIL PROTECTED]>
>> Subject: Re: [Dojo-interest] Dictionary and 'eval' key
>>
>> PT,
>> I'm fairly certain JScript doesn't support "hasOwnProperty", but
>> I'll double check.
>
> This would be bad, as we are relying on hasOwnProperty for several
> features in the DHTML runtime. Can anyone confirm or deny that
> JScript supports hasOwnProperty? (It is part of the ECMA standard).
> _______________________________________________
> Laszlo-dev mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev