Abstract

JavaScript libraries don’t start out as libraries. They start out as “helper” scripts. It’s possible, but impractical, to do DOM scripting without the support of a library. Little things will start to annoy you from day one. You’ll get tired of typing out document.getElementById, so you’ll write an alias. Then you’ll notice that Internet Explorer and Firefox have different event systems, so you’ll write a wrapper function for adding events. Then you’ll become irritated with a specific oversight of the language itself, so you’ll use JavaScript’s extensibility to write some code to correct it.

Keywords

Sugar 

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Andrew Dupont 2008

Personalised recommendations