diff --git a/scripts/ex/class.js b/scripts/ex/class.js index 8330869..a3e6bc9 100644 --- a/scripts/ex/class.js +++ b/scripts/ex/class.js @@ -1,19 +1,13 @@ -/** - * Basic class declaration example - */ - -// Define class Dog +// define class Dog var Dog = Class( 'Dog', { 'private _name': '', - __construct: function( name ) { this._name = name; }, - 'public bark': function() { console.log( this._name + ' says: Woof!' );