can-construct
Advanced tools
Comparing version 3.5.0 to 3.5.1
@@ -335,15 +335,15 @@ "use strict"; | ||
* | ||
* | ||
* Group = Construct.extend({ | ||
* setup: function(Construct, fullName, staticProps, protoProps){ | ||
* this.childGroups = []; | ||
* if(Construct !== Construct){ | ||
* this.childGroups.push(Construct) | ||
* } | ||
* Construct.setup.apply(this, arguments) | ||
* } | ||
* },{}) | ||
* var Flock = Group.extend(...) | ||
* Group.childGroups[0] //-> Flock | ||
* | ||
* ```js | ||
* Group = Construct.extend({ | ||
* setup: function(Construct, fullName, staticProps, protoProps){ | ||
* this.childGroups = []; | ||
* if(Construct !== Construct){ | ||
* this.childGroups.push(Construct) | ||
* } | ||
* Construct.setup.apply(this, arguments) | ||
* } | ||
* },{}) | ||
* var Flock = Group.extend(...) | ||
* Group.childGroups[0] //-> Flock | ||
* ``` | ||
* @param {constructor} base The base constructor that is being inherited from. | ||
@@ -742,3 +742,3 @@ * @param {String} fullName The name of the new constructor. | ||
* | ||
* ``` | ||
* ```js | ||
* var Student = function( name, school ){ | ||
@@ -745,0 +745,0 @@ * this.name = name; |
{ | ||
"name": "can-construct", | ||
"version": "3.5.0", | ||
"version": "3.5.1", | ||
"description": "easy constructor functions", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
46740