From: Tay R. C. <rc...@us...> - 2005-07-15 11:50:43
|
Update of /cvsroot/actionstep/actionstep/src/org/actionstep In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10387/actionstep/org/actionstep Modified Files: NSObject.as Log Message: added respondsToSelector Index: NSObject.as =================================================================== RCS file: /cvsroot/actionstep/actionstep/src/org/actionstep/NSObject.as,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** NSObject.as 28 Jun 2005 10:01:36 -0000 1.11 --- NSObject.as 15 Jul 2005 11:50:34 -0000 1.12 *************** *** 138,149 **** return NSObject(res); } ! ! public function copy() { ! var f = this["copyWithZone"]; ! if(f instanceof Function) { ! return f.call(this); ! } else { ! throw new Error("Class doesn't implement NSCopying"); ! } ! } } \ No newline at end of file --- 138,153 ---- return NSObject(res); } ! ! public function copy() { ! var f = this["copyWithZone"]; ! if(f instanceof Function) { ! return f.call(this); ! } else { ! throw new Error("Class doesn't implement NSCopying"); ! } ! } ! ! public function respondsToSelector(sel:String):Boolean { ! return hasOwnProperty(sel); ! } } \ No newline at end of file |