|
@@ -241,7 +241,7 @@ const SHOW_CLASSES = {
|
241
|
241
|
element.classList.remove('hide');
|
242
|
242
|
}
|
243
|
243
|
|
244
|
|
- let type = this.getElementDefaultDisplay(element.tagName);
|
|
244
|
+ let type = this._getElementDefaultDisplay(element.tagName);
|
245
|
245
|
let className = SHOW_CLASSES[type];
|
246
|
246
|
element.classList.add(className);
|
247
|
247
|
},
|
|
@@ -263,7 +263,7 @@ const SHOW_CLASSES = {
|
263
|
263
|
return;
|
264
|
264
|
}
|
265
|
265
|
|
266
|
|
- let type = this.getElementDefaultDisplay(element.tagName);
|
|
266
|
+ let type = this._getElementDefaultDisplay(element.tagName);
|
267
|
267
|
let className = SHOW_CLASSES[type];
|
268
|
268
|
|
269
|
269
|
if(element.classList.contains(className)) {
|
|
@@ -277,8 +277,9 @@ const SHOW_CLASSES = {
|
277
|
277
|
* Returns default display style for the tag
|
278
|
278
|
* @param tag
|
279
|
279
|
* @returns {*}
|
|
280
|
+ * @private
|
280
|
281
|
*/
|
281
|
|
- getElementDefaultDisplay(tag) {
|
|
282
|
+ _getElementDefaultDisplay(tag) {
|
282
|
283
|
let tempElement = document.createElement(tag);
|
283
|
284
|
|
284
|
285
|
document.body.appendChild(tempElement);
|