Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Re : Passing a boolean to can component

$
0
0
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.

Viewing all articles
Browse latest Browse all 3491

Trending Articles