Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (22 sloc) 469 Bytes
<!doctype html>
<html lang="en">
<head>
<title>JavaScript Patterns</title>
<meta charset="utf-8">
</head>
<body>
<script>
function Person() {
var that = (this === window) ? {} : this;
that.name = name;
that.say = function () {
return "I am " + that.name;
};
return that;
}
// reference
// http://www.jspatterns.com/
// http://shop.oreilly.com/product/9780596806767.do?sortby=publicationDate
</script>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.