0
I Use This!
Activity Not Available
Analyzed 12 months ago. based on code collected 12 months ago.

Project Summary

JavascriptClasses v1.0 has been released!Check out the downloads page to try it out now! Or just browse the source online.

This framework provides the ability to elegantly write javascript classes, with full capabilities of deep hierarchies, including interfaces, and multiple inheritance with familiar syntax.

(This project is still in it's early stages, please let me know what your first reaction to this code is. Suggestions and tips are welcome!)

Animal = new Class() ({
__init__ : function( firstName, lastName ) {
this.firstName = firstName;
this.lastName = lastName;
},

getFullName : function() {
return( this.firstName + ' ' + this.lastName );
}
});

Human = new Class( Animal ) ({
__init__ : function( firstName, lastName, tshirtColor ) {
Animal.__init__.call(this, firstName, lastName);
this.tshirtColor = tshirtColor;
}
});

var a = new Animal('Fluffy', 'Smith');
var h = new Human('Bartholomew', 'Zabos', 'green');

Tags

base class classical extend framework inheritance interface javascript javascript-class javascript-interface js js-class js-interface oop

In a Nutshell, javascript-classes...

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    by exploring contributors within projects, you can view details on every commit they have made to that project
  • ...
    55% of companies leverage OSS for production infrastructure
  • ...
    anyone with an Open Hub account can update a project's tags

30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016

Ratings

Be the first to rate this project
Click to add your rating
   Spinner
Review this Project!