Revert "make more-info- tags in dynamicContentUpdater lowercase" (#221)

This commit is contained in:
Paulus Schoutsen 2017-02-25 14:56:46 -08:00 committed by GitHub
parent 5d223c8da4
commit e509ed07a0
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ Polymer({
} }
} else { } else {
window.hassUtil.dynamicContentUpdater( window.hassUtil.dynamicContentUpdater(
this, 'more-info-' + window.hassUtil.stateMoreInfoType(stateObj), this, 'MORE-INFO-' + window.hassUtil.stateMoreInfoType(stateObj).toUpperCase(),
{ hass: this.hass, stateObj: stateObj, isVisible: true }); { hass: this.hass, stateObj: stateObj, isVisible: true });
} }
}, },

View File

@ -76,7 +76,7 @@ window.hassUtil.dynamicContentUpdater = function (root, newElementTag, attribute
var rootEl = Polymer.dom(root); var rootEl = Polymer.dom(root);
var customEl; var customEl;
if (rootEl.lastChild && rootEl.lastChild.tagName.toLowerCase() === newElementTag) { if (rootEl.lastChild && rootEl.lastChild.tagName === newElementTag) {
customEl = rootEl.lastChild; customEl = rootEl.lastChild;
} else { } else {
if (rootEl.lastChild) { if (rootEl.lastChild) {