API Docs for: 1.4.0
Show:

Kiwi.System.Bootstrap Class

Module: System
Parent Module: Kiwi

DOM Boot and Ready functions (based on those used by jQuery)

Methods

_setupContainer

(
  • id
)
private

Parameters:

  • id String

boot

(
  • domParent
  • [callback=null]
  • [createContainer=true]
)
public

Called at the start of the game to check to see if the DOM is ready before we do anything requiring it

Parameters:

  • domParent String
  • [callback=null] Any optional
  • [createContainer=true] Boolean optional

objType

() String public

The type of object that this is.

Returns:

String:

"Bootstrap"

ready

() public

If the DOM is ready it fires our callback, otherwise sets a short timeout to try again

Properties

_callback

Any private

_createContainer

Boolean private

_domParent

String private

container

HTMLDivElement public

The parent div in which the layers and input live

input

HTMLDivElement public

This div sits on-top of all layers and captures user input

isReady

Boolean public