True. this.o is not a hasOwnProperty of this (it's on the prototype), but this.o does have its own property of key1.
On Thu, Jul 7, 2011 at 10:42 AM, Jonathan Bomgardner <[email protected]>wrote: > so how about the following: > > var Ex = new Class({ > o: { key1: 'val1'}, > test: function(){ > this.o.hasOwnProperty('key1'); //what should this return? > } > }); > > Jon >
