When Should JavaScript Developers Use hasOwnProperty?

Every aspiring JavaScript developer should read and reread JavaScript Garden (discovered via @javascripting), which provides a great overview of some of the most confusing and misunderstood JavaScript behavior. Experienced JS developers have probably learned most of this already, but may have reduced a lot of furniture to kindling in the…

JSDB.io is Now JavaScripting.com

When we acquired the JavaScripting.com domain well over a year ago, we had a vague idea that we could use it to set up a community website for JavaScript developers. After some thought, this idea crystallized into a vision of a web-based database for JavaScript libraries and frameworks. As…

DOM Window Wrapper Update

A quick update to my previous post about creating a DOM window wrapper. My colleague Tomas pointed out that Browserify breaks if it is running inside the wrapper, due some code in the shim it uses for the NodeJS process module. The code compares the source of an event with…

Wrapping the DOM Window Object

In order to enable Kitt, our iPhone web browser, to run browser extensions, we needed a way to run content scripts in a webpage. In Chrome, content scripts are run in a sandbox to prevent the two contexts from interfering with each other. They share only the window object. Although…