loleaflet: remove invalid fonts

Change-Id: Ie0383d01f6040d00c630c0aab6b9a66666d079d3
This commit is contained in:
Henry Castro 2016-12-01 14:29:58 -04:00
parent 721003512e
commit 09923cc10b

View file

@ -461,6 +461,9 @@ L.Control.CharacterMap = L.Control.extend({
option.innerHTML = this.unicodeBlocks[list[iterator]].name;
}, this);
this._onUnicodeSubsetChange();
} else {
L.DomUtil.remove(this._fontNames.options[this._fontNames.selectedIndex]);
this._onFontNamesChange();
}
},