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

17 lines
233 B
JavaScript
Raw Normal View History

const { Class } = easejs;
const Stack = Class( 'Stack',
2011-03-25 00:08:23 -04:00
{
'private _stack': [],
2011-11-05 13:04:55 -04:00
'public push'( value )
2011-11-05 13:04:55 -04:00
{
this._stack.push( value );
2011-11-05 13:04:55 -04:00
},
'public pop'()
2011-03-25 00:08:23 -04:00
{
return this._stack.pop();
},
2011-03-25 00:08:23 -04:00
} );