ym.core.Observable

Initialization

Observable is initialized as follows:

var observable = new ym.core.Observable();  

Constructor(name)

Parameters

Name Description Data type Default value
name [optional] string ym.core.Observable

Methods

publish(data) ab v3

Parameters

Name Description Data type Default value
data   *  

Return

ym.core.Observable

subscribe(subscriber, context) ab v3

Parameters

Name Description Data type Default value
subscriber   function  
context   *  

Return

ym.core.Observable

unsubscribe(subscriber) ab v3

Parameters

Name Description Data type Default value
subscriber   function  

Return

ym.core.Observable