Using a prototype to extend your JavaScript methods.
Posted in code on Mar 27th, 2008
The Problem: Calling a function many times throughout a particular JavaScript file or block. JavaScript is often used to manipulate a variety of HTML objects on a page, i.e. to “show” or “hide” them, or perform some type of toggled functionality on a variety of buttons, divs, etc. It is not uncommon to see code [...]