Comparing version 1.1.1 to 1.1.2
{ | ||
"name" : "classy", | ||
"version" : "1.1.1", | ||
"version" : "1.1.2", | ||
"devDependencies": { | ||
@@ -5,0 +5,0 @@ "browserify": "^3.44.2", |
@@ -1,13 +0,13 @@ | ||
ZippyClass - Classes for JavaScript | ||
Classy - Classes for JavaScript | ||
============================ | ||
ZippyClass offers the ability to easily define classes, call super or overriden methods, define static properties, and mixin objects in a very flexible way. | ||
Classy offers the ability to easily define classes, call super or overriden methods, define static properties, and mixin objects in a very flexible way. | ||
Meant to be used in the browser and in node.js as well. | ||
Use ```dist/ZippyClass.js``` | ||
Use ```dist/classy.js``` | ||
```js | ||
var Vehicle = ZippyClass.define({ | ||
var Vehicle = classy.define({ | ||
alias: 'vehicle', | ||
@@ -20,3 +20,3 @@ | ||
var Car = ZippyClass.define({ | ||
var Car = classy.define({ | ||
extend: 'vehicle' | ||
@@ -48,3 +48,3 @@ //or extend: Vechicle | ||
```js | ||
ZippyClass.override('car', { | ||
classy.override('car', { | ||
getName: function(){ | ||
@@ -60,4 +60,4 @@ return this.callOverriden() + ', made in ' + this.year | ||
```js | ||
var Car = ZippyClass.getClass('car') | ||
var Vehicle = ZippyClass.getClass('vehicle') | ||
var Car = classy.getClass('car') | ||
var Vehicle = classy.getClass('vehicle') | ||
``` | ||
@@ -72,3 +72,3 @@ | ||
```js | ||
var Animal = ZippyClass.define({ | ||
var Animal = classy.define({ | ||
@@ -86,3 +86,3 @@ //when a new Animal is created, the init method is called | ||
var Cat = ZippyClass.define({ | ||
var Cat = classy.define({ | ||
extend: Animal, | ||
@@ -113,3 +113,3 @@ alias: 'cat', | ||
//create a shape class | ||
ZippyClass.define({ | ||
classy.define({ | ||
alias: 'shape', | ||
@@ -123,3 +123,3 @@ | ||
//create a rectangle class with a width and a height | ||
ZippyClass.define({ | ||
classy.define({ | ||
extend: 'shape', | ||
@@ -142,3 +142,3 @@ alias: 'rectangle', | ||
ZippyClass.override('rectangle', { | ||
classy.override('rectangle', { | ||
getDescription: function(){ | ||
@@ -151,3 +151,3 @@ //reimplement the getDescription, but use the overriden implementation as well | ||
//create a square class | ||
ZippyClass.define({ | ||
classy.define({ | ||
extend: 'rectangle', | ||
@@ -191,3 +191,3 @@ alias: 'square', | ||
var Widget = ZippyClass.define({ | ||
var Widget = classy.define({ | ||
@@ -194,0 +194,0 @@ statics: { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
1575039