You could remove the define plugin and the define: section, but then the
attribute value for the case `is-selectable="false"` will be
the string "false" which is not actually falsey. You could
make it behave correctly in that case by replacing with
`is-selectable=""` or leaving it out entirely (since the
default value is false already). Less code by about 4 lines, but less
maintainable, if you care about that sort of thing.
↧