Subj : Re: JS arrays To : netscape.public.mozilla.jseng From : "LNK2005" Date : Fri Apr 18 2003 07:20 pm Nevermind, this is getting too messy. I'll just use a wrapper object around the array. "LNK2005" wrote in message news:vZSna.2213$KF1.85591@amstwist00... > I'm trying to use a custom JS Array (JS_DefineObject() with an empty array > as prototype) in an app that embeds SpiderMonkey. The problem is, I want to > make sure that each element in the array is an object of a certain class. > When the user resize the array, null values are put into the new slots, but > I want them to contain new instances of some other class instead. Also, the > user shouldn't be able to assign any sort of elements to the slots. Any > ideas how to do this? Is there some way to be notified when the array is > resized and/or when a slot is assigned? > > .