Removed header from class declaration example
parent
f2ab096ee3
commit
45cd68908b
|
@ -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!' );
|
||||
|
|
Loading…
Reference in New Issue