Gildas 7 лет назад
Родитель
Сommit
e59548cf97
1 измененных файлов с 1 добавлено и 1 удалено
  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);
 		});
 	}