Package Exports
- ee-class
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (ee-class) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
ee-class
var Class = require( "ee-class" );
var Human = new Class( {
name: ""
, age: 29
, init: function( options ){
this.name = options.name;
}
, sayHello: function( to ){
console.log( "Hi %s, my name is %s and i'm %i years old.", to, this.name, this.age );
}
} );
var Boy = new Class( {
inherits: Human
, age: 12
} );
var fabian = new Boy( { name: "Fabian" } );
fabian.sayHello(); // Hi my name is Fabian and i'm 12 years old.