Skip to content

A humble attempt at making JavaScript prototypes and inheritance hierarchies slightly more sane to work with, especially in the Chrome debugger.

Notifications You must be signed in to change notification settings

changemewtf/protosimple

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProtoSimple

A humble attempt at making JavaScript prototypes and inheritance hierarchies slightly more sane to work with, especially in the Chrome debugger.

A screenshot of sane console.dir output

Usage

Everything starts by extending from BasicObject.

var Animal = BasicObject.extend("Animal", {
    initialize: function(name) {
        this.name = name;
    },
    legs: 2
});

var Dog = Animal.extend("Dog", {
    legs: 4
});

d = Dog.create("Ogden");

Running the Tests

Open test/test.html in your browser.

About

A humble attempt at making JavaScript prototypes and inheritance hierarchies slightly more sane to work with, especially in the Chrome debugger.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published