Comparing version 0.2.0 to 1.0.0
@@ -50,6 +50,5 @@ // pass | ||
// if the superclass isn't given | ||
C[prototype] = new _superclass; | ||
var proto = C[prototype] = new _superclass | ||
var proto = C[prototype] | ||
, _super = _superclass[prototype] | ||
var _super = _superclass[prototype] | ||
, extensions = {} | ||
@@ -56,0 +55,0 @@ ; |
{ | ||
"name": "pjs", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "A lightweight class system. It's just prototypes!", | ||
@@ -13,3 +13,3 @@ "keywords": ["class", "pjs", "P", "inheritance", "super"], | ||
"mocha": "*", | ||
"uglifyjs": "*" | ||
"uglify-js": "*" | ||
}, | ||
@@ -16,0 +16,0 @@ "scripts": { |
@@ -49,6 +49,5 @@ var P = (function(prototype, hasOwnProperty, undefined) { | ||
// if the superclass isn't given | ||
C[prototype] = new _superclass; | ||
var proto = C[prototype] = new _superclass | ||
var proto = C[prototype] | ||
, _super = _superclass[prototype] | ||
var _super = _superclass[prototype] | ||
, extensions = {} | ||
@@ -55,0 +54,0 @@ ; |
@@ -38,2 +38,3 @@ var assert = require('assert') | ||
assert.equal(3, MyClass(1,2,3).initArgs[2]); | ||
assert.equal(2, MyClass.apply(null, [1, 2, 3]).initArgs[1]); | ||
}); | ||
@@ -40,0 +41,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
13293
12
296