Comparing version 3.0.2 to 3.1.0
@@ -0,1 +1,6 @@ | ||
## version 3.1.0: 2013-06-13 | ||
* Add .p as an alias for .prototype | ||
* slight minifier optimization | ||
## version 3.0.2: 2013-04-04 | ||
@@ -2,0 +7,0 @@ |
{ | ||
"name": "pjs", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "A lightweight class system. It's just prototypes!", | ||
@@ -5,0 +5,0 @@ "keywords": ["class", "pjs", "P", "inheritance", "super"], |
@@ -10,3 +10,3 @@ var P = (function(prototype, ownProperty, undefined) { | ||
function P(_superclass /* = Object */, definition) { | ||
return function P(_superclass /* = Object */, definition) { | ||
// handle the case where no superclass is given | ||
@@ -42,3 +42,3 @@ if (definition === undefined) { | ||
var _super = SuperclassBare[prototype] = _superclass[prototype]; | ||
var proto = Bare[prototype] = C[prototype] = new SuperclassBare; | ||
var proto = Bare[prototype] = C[prototype] = C.p = new SuperclassBare; | ||
@@ -89,7 +89,4 @@ // other variables, as a minifier optimization | ||
// ship it | ||
return P; | ||
// as a minifier optimization, we've closured in a few helper functions | ||
// and the string 'prototype' (C[p] is much shorter than C.prototype) | ||
})('prototype', ({}).hasOwnProperty); |
17637
277