<< Click to Display Table of Contents >>

 

new sg.event

 

 

Description

Namespace for events.

 

Position

 

 

 

Methods

 

Method

Type

Description

on(target, type, handler)

target:sg.Class

type:String

handler:function

Returns:Object

 

listen to an event.

Name

Type

Description

target

sg.Class

The event target

type

String

The event type

handler

function

The function to call as the event occurs

Returns:

Type

Description

Object

l

remove(listener)

Object

remove listener

Name

Type

Description

listener

Object

The listener

trigger(target, type)

Object

trigger event

Name

Type

Description

target

sg.Class

The trigger target

type

String

The event type

 

 

See live example

 


©2015 Supergeo Technologies Inc.