forked from MapComplete/MapComplete
Remove empty elements
This commit is contained in:
parent
ea61e17268
commit
40a0e7931d
3 changed files with 23 additions and 15 deletions
|
|
@ -45,6 +45,7 @@ export default abstract class BaseUIElement {
|
|||
* Adds all the relevant classes, space separated
|
||||
*/
|
||||
public SetClass(clss: string) {
|
||||
if(clss == undefined){return }
|
||||
const all = clss.split(" ").map(clsName => clsName.trim());
|
||||
let recordedChange = false;
|
||||
for (let c of all) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue