Skip to main content
Ben Nadel at NCDevCon 2011 (Raleigh, NC) with: Hemant Khandelwal
Ben Nadel at NCDevCon 2011 (Raleigh, NC) with: Hemant Khandelwal@khandelwalh )

Ginx

Member since May 3, 2009

Recent Blog Comments By Ginx

  • Extending Classes In Object Oriented Javascript

    Posted on May 3, 2009 at 9:25 PM

    I got an "undefined" error when extending a function's protoype before actually declaring the function, as in your example: StraightDatingStrategy.prototype = new DatingStrategy(); function StraightDatingStrategy(){ DatingStrategy.apply( this, arguments ); } That was easily resolved though. Nice... read more »