Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

classy

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

classy - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"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: {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc