From: Scott H. <sco...@us...> - 2005-05-17 01:30:16
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13396/src/org/actionstep Modified Files: NSObject.as Log Message: Constructor now called before copying properties Index: NSObject.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSObject.as,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** NSObject.as 16 May 2005 23:05:59 -0000 1.4 --- NSObject.as 17 May 2005 01:29:59 -0000 1.5 *************** *** 69,79 **** // - // Copy all the properties - // - for (var p:String in this) { - res[p] = this[p]; - } - - // // Fire the constructor // --- 69,72 ---- *************** *** 83,88 **** // should be fairly easy to do if necessary. // ! constructor.apply(res, []); return NSObject(res); } --- 76,88 ---- // should be fairly easy to do if necessary. // ! constructor.apply(res); + // + // Copy all the properties + // + for (var p:String in this) { + res[p] = this[p]; + } + return NSObject(res); } |