Skip to main content
Ben Nadel at cf.Objective() 2013 (Bloomington, MN) with: Adam Presley
Ben Nadel at cf.Objective() 2013 (Bloomington, MN) with: Adam Presley@adampresley )


Member since Aug 25, 2011

Recent Blog Comments By Matt

  • Using Super Constructors Is Critical In Prototypal Inheritance In Javascript

    Posted on Dec 18, 2011 at 8:46 PM

    Usage of the following script helps enforce the policy of always calling the parent constructor in the case where default (object) values have been set to properties on the parent "class." Not fool-proof, but should work well to prevent most problems... Function.prototype.extend =... read more »

  • jQuery Plugin insertAt() For Comparator-Based Insertion

    Posted on Aug 25, 2011 at 1:30 PM

    This is a great plugin. Just one small addition - to make it also work when the container element is initially empty (such as a UL element with no LI elements in it), make the following change. In the jQuery.insertSorted function, just below the line: item = $( item ); Add the following code: if... read more »