v24
Handle State Change
<String> LViS.Regular.ON_STATE_CHANGE
Notifies about state change.

Example

// shorthand
var R = window.LViS.Regular;
element.bind(R.ON_STATE_CHANGE, function (state) {
switch (state) {
case R.STATE_STARTED:
renderStartedState();
break;
case R.STATE_CLOSED:
renderClosedState();
break;
}
});
Copy link