I have something like $$('[map="true"]').addClass('hidden');
but sometime map is not exists. Can i call methods in mootools without breaking js and not adding if condition before method call? AFAIR jQuery check this by default.
I have something like $$(‘[map=true]’).addClass(‘hidden’); but sometime map is not exists. Can i call
Share
If your intention is to use
[map="true"]as a selector, as seems to be with$$, then it is a string, not a variable assignment.