1
0
Fork 0

Removed header from class declaration example

website
Mike Gerwitz 2012-01-09 22:41:57 -05:00
parent f2ab096ee3
commit 45cd68908b
1 changed files with 1 additions and 7 deletions

View File

@ -1,19 +1,13 @@
/** // define class Dog
* Basic class declaration example
*/
// Define class Dog
var Dog = Class( 'Dog', var Dog = Class( 'Dog',
{ {
'private _name': '', 'private _name': '',
__construct: function( name ) __construct: function( name )
{ {
this._name = name; this._name = name;
}, },
'public bark': function() 'public bark': function()
{ {
console.log( this._name + ' says: Woof!' ); console.log( this._name + ' says: Woof!' );