Pool Class
For pooling objects that can be reused.
Constructor
Pool
()
Methods
constructObject
()
Mixed
Construct an object. Should be implmented in each subclass.
Returns:
Mixed:
get
()
Mixed
Get an object
Returns:
Mixed:
release
(
-
obj
Release an object after use
Parameters:
-
obj
Object
Properties
objects
Array
The pooled objects
type
Mixed
Constructor of the objects