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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>BlackJack</title> | |
</head> | |
<body onload="start();"> | |
<script type="text/javascript" src="subclass.js"></script> | |
<script type="text/javascript"> | |
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
(function() { | |
var initializing = false, | |
superPattern = // Determine if functions can be serialized | |
/xyz/.test(function() { xyz; }) ? /\b_super\b/ : /.*/; //#1 | |
// Creates a new Class that inherits from this class | |
Object.subClass = function(properties) { //#2 | |
var _super = this.prototype; | |
// Instantiate a base class (but only create the instance, |
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> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Adapter</title> | |
</head> | |
<body> | |
<script type="text/javascript" src="subclass.js"></script> | |
<script type="text/javascript"> | |