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

17 lines
251 B
JavaScript
Raw Normal View History

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