Matt
Member since Aug 25, 2011
- Profile: /members/8862-matt.htm
- Comments: 2
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 »