Function poolable

  • Check if an object is poolable (was properly registered with the recycling feature enable)

    Parameters

    • obj: object

      object to be checked

    Returns boolean

    true if the object is poolable

    register

    if (!me.pool.poolable(myCherryEntity)) {
    // object was not properly registered
    }