summaryrefslogtreecommitdiffstats
path: root/js.2/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'js.2/utils.js')
-rw-r--r--js.2/utils.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/js.2/utils.js b/js.2/utils.js
index 5a438d9..6eacce3 100644
--- a/js.2/utils.js
+++ b/js.2/utils.js
@@ -4,17 +4,5 @@ JSNES.Utils = {
for (var i=0; i<length; ++i) {
dest[destPos+i] = src[srcPos+i];
}
- },
-
- // http://www.sitepoint.com/blogs/2006/01/17/javascript-inheritance/
- copyPrototype: function(descendant, parent) {
- var sConstructor = parent.toString();
- var aMatch = sConstructor.match( /\s*function (.*)\(/ );
- if ( aMatch != null ) { descendant.prototype[aMatch[1]] = parent; }
- for (var m in parent.prototype) {
- if (typeof descendant.prototype[m] == 'undefined') {
- descendant.prototype[m] = parent.prototype[m];
- }
- }
}
}