1
0
Fork 0
easejs/scripts/ex/class-anon.js

14 lines
221 B
JavaScript
Raw Normal View History

var Foo = Class(
'private _name': '',
__construct: function( name )
{
this._name = ''+( name );
},
'public sayHello': function()
{
return this._name + " says 'Hello!'";
},
);