Posted By

noah on 10/28/08


Tagged

oo namespace jslint


Versions (?)

Conditionally instantiate an object


 / Published in: JavaScript
 

URL: http://www.dustindiaz.com/javascript-private-public-privileged/

Dustin Diaz's take on conditional instantiation of an object in JavaScript. I don't think this will get a warning from JSLint.

  1. var DED = window.DED || {};

Report this snippet  

You need to login to post a comment.