MCPcopy
hub / github.com/imakewebthings/deck.js / removeOldSlideStates

Function removeOldSlideStates

core/deck.core.js:106–118  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104 };
105
106 var removeOldSlideStates = function() {
107 var $all = $();
108 $.each(slides, function(i, el) {
109 $all = $all.add(el);
110 });
111 $all.removeClass([
112 options.classes.before,
113 options.classes.previous,
114 options.classes.current,
115 options.classes.next,
116 options.classes.after
117 ].join(' '));
118 };
119
120 var addNewSlideStates = function() {
121 slides[currentIndex].addClass(options.classes.current);

Callers 1

updateStatesFunction · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected