Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at cf.Objective() 2012 (Minneapolis, MN) with: Ed Northby
Ben Nadel at cf.Objective() 2012 (Minneapolis, MN) with: Ed Northby

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 »