v24
Handle State Change
1
<String> LViS.Data.ON_STATE_CHANGE
Copied!
Notifies about state change.
1
// shorthand
2
var D = window.LViS.Data;
3
4
element.bind(D.ON_STATE_CHANGE, function (state) {
5
switch (state) {
6
case D.STATE_STARTED:
7
renderStartedState();
8
break;
9
case D.STATE_CLOSED:
10
renderClosedState();
11
break;
12
}
13
});
Copied!
Last modified 2yr ago
Copy link