v24
Ask or search…
K
Links

Handle State Change

<String> LViS.Data.ON_STATE_CHANGE
Notifies about state change.
// shorthand
var D = window.LViS.Data;
element.bind(D.ON_STATE_CHANGE, function (state) {
switch (state) {
case D.STATE_STARTED:
renderStartedState();
break;
case D.STATE_CLOSED:
renderClosedState();
break;
}
});
Last modified 4yr ago