Skip to main content

Matt

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 »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel