/ Published in: JavaScript
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * @constructor */ function MyConstructor() { if ( !( this instanceof arguments.callee ) ) { return new MyConstructor(); } // Props and methods }
URL: http://ejohn.org/apps/learn/#36