MCPcopy Create free account
hub / github.com/dcloudio/mui / toggleActive

Function toggleActive

js/tableviews.js:40–55  ·  view source on GitHub ↗
(isActive)

Source from the content-addressed store, hash-verified

38
39
40 var toggleActive = function(isActive) {
41 if (isActive) {
42 if (a) {
43 a.classList.add(CLASS_ACTIVE);
44 } else if (cell) {
45 cell.classList.add(CLASS_ACTIVE);
46 }
47 } else {
48 timer && timer.cancel();
49 if (a) {
50 a.classList.remove(CLASS_ACTIVE);
51 } else if (cell) {
52 cell.classList.remove(CLASS_ACTIVE);
53 }
54 }
55 };
56
57 var updateTranslate = function() {
58 if (translateX !== lastTranslateX) {

Callers 1

tableviews.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected