API Docs for: 0.7.1
Show:

Object pooling utility. Class

Defined in: src/utils/Pool.js:3

Item Index

Properties

Methods

destroy

(
  • record
)
OverlapKeeperRecordPool

Parameters:

Returns:

OverlapKeeperRecordPool:

get

() Object

Get an object from the pool or create a new instance.

Returns:

Object:

release

(
  • object
)
Pool

Clean up and put the object back into the pool for later use.

Parameters:

  • object Object

Returns:

Pool:

Self for chaining

resize

(
  • size
)
Pool

Parameters:

  • size Number

Returns:

Pool:

Self, for chaining

Properties

objects

Array

Defined in src/utils/Pool.js:9