MCPcopy
hub / github.com/sachinchoolur/lightGallery / removeClass

Method removeClass

src/lgQuery.ts:212–222  ·  view source on GitHub ↗
(classNames: string)

Source from the content-addressed store, hash-verified

210 }
211
212 removeClass(classNames: string): this {
213 this._each((el: any) => {
214 // IE doesn't support multiple arguments
215 classNames.split(' ').forEach((className) => {
216 if (className) {
217 el.classList.remove(className);
218 }
219 });
220 });
221 return this;
222 }
223
224 hasClass(className: string): boolean {
225 if (!this.firstElement) {

Callers 15

toggleClassMethod · 0.95
resetScrollBarMethod · 0.80
openGalleryMethod · 0.80
hideBarsMethod · 0.80
addHtmlMethod · 0.80
loadContentMethod · 0.80
setDownloadValueMethod · 0.80
makeSlideAnimationMethod · 0.80
slideMethod · 0.80
touchMoveMethod · 0.80

Calls 2

_eachMethod · 0.95
removeMethod · 0.80

Tested by

no test coverage detected