Skip to content

Commit

Permalink
super -> parent for node v0.5+
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Jan 12, 2012
1 parent 0424fa1 commit aa0b216
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Expand Up @@ -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);

Expand Down

0 comments on commit aa0b216

Please sign in to comment.