This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Source: http://www.jeremyjohnstone.com/blog/2007-12-27-useful-javascript-oo-pattern.html/comment-page-1#comment-88 | |
*/ | |
var myObj = function() { | |
// private instance variables | |
var foo = 33; | |
// pseudo static initializer | |
var staticInitializer = function() { | |
// do some code here, will run only once |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<title>Untitled Document</title> | |
<!--<link rel="stylesheet" type="text/css" href="style.css"/>--> | |
<!--<script src="main.js" type="text/javascript"></script>--> |