Procházet zdrojové kódy

remove datasrc attribute

Gildas před 7 roky
rodič
revize
e59548cf97
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lib/single-file/lazy-loader.js

+ 1 - 1
lib/single-file/lazy-loader.js

@@ -88,7 +88,7 @@ this.lazyLoader = this.lazyLoader || (() => {
 			if (dataSrc) {
 				processElement(element);
 			}
-			element.removeAttribute("data-" + attributeName);
+			element.removeAttribute(dataAttributeName ? dataAttributeName : "data-" + attributeName);
 		});
 	}