At 2002-08-26 19:21, James Musick wrote: >function foo(x,y,z) >{ > this.DynLayer = DynLayer; > this.DynLayer(); >} >foo.prototype = new DynLayer() [snip]
Short answer: that's how inheritance should be done in javascript. Long answer: read chapter 8 of http://developer.netscape.com/docs/manuals/js/client/jsguide/index.htm /Lunna ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Dynapi-Help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dynapi-help