From aa0b21632ab3a32f8acc6ba53d8f18491bf97757 Mon Sep 17 00:00:00 2001 From: Aaron Heckmann Date: Thu, 12 Jan 2012 17:14:11 -0500 Subject: [PATCH] super -> parent for node v0.5+ --- index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index ee42731c..7ba24df8 100644 --- a/index.js +++ b/index.js @@ -56,17 +56,17 @@ function gm (source, height, color) { this.source = source; } -var super = gm; +var parent = gm; gm.subClass = function subClass (options) { function gm (source, height, color) { - if (!(this instanceof super)) { + if (!(this instanceof parent)) { return new gm(source, height, color); } - super.call(this, source, height, color); + parent.call(this, source, height, color); } - gm.prototype.__proto__ = super.prototype; + gm.prototype.__proto__ = parent.prototype; gm.prototype._options = {}; gm.prototype.options(options);