Module: lyria/scene

lyria/scene

new require("lyria/scene")()

Scene constructor

Source:
Source:

Requires

Methods

add(child)

Adds a gameobject to the scene

Parameters:
Name Type Description
child Object
Source:

behavior(behaviorName, eventName, eventFunction)

Binds an DOM event to the specified data-behavior selector

Parameters:
Name Type Description
behaviorName String
eventName String
eventFunction function
Source:

bindEvent(selector, eventName, eventFunction)

Sets an event to the event object (DOM events)

Parameters:
Name Type Description
selector String
eventName String
eventFunction function
Source:

bindEvents(eventObject)

Binds a lot of events instead of a single one

Parameters:
Name Type Description
eventObject Object
Source:
See:
  • bindEvent

refresh(val)

Refreshes the scene (Re-renders the template)

Parameters:
Name Type Description
val Object
Source:

t(lang)

Gets localized value

Parameters:
Name Type Description
lang Object
Source:

unbindEvents(Object)

Unbinds a lot of events

Parameters:
Name Type Argument Description
Object <optional>

eventObject

Source:
DocStrap Copyright © 2012-2013 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.2.2 on Sun Jan 26 2014 20:12:46 GMT+0100 (MEZ) using the DocStrap template.