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

Example

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