Empty-label check does not work as expected ?
T1mL3arn opened this issue · 2 comments
T1mL3arn commented
Looks like empty-label check does not work as expected.
// for some reason it is empty string
var label = '';
menu.createMenuPag('foo')
.add('
-| hello | link | hello_link
-| ${label} | link | empty_link
');
Uncaught exception - Wrong MenuItemType at "link" Typo?
djFlixel/djFlixel/ui/menu/MItemData.hx
Lines 244 to 251 in 495d2a7
Though it caught the problem with empty label, it was not clear at first what is the reason.
john32b commented
good catch,
oh yeah, now that I am looking at the code, it completely ignores the empty | |
fields, as if they don't exist, I don't remember why I did that 🤔. Perhaps to quickly remove the first and last |
?
I'll look into this
john32b commented
That should do the trick. I don't think I broke anything