Lines Matching refs:val
928 function validateIf(val, out, flag, nodeLoc, relativePath) { argument
929 if (!REG_DATA_BINDING.test(val)) {
930 if (val.trim() === 'false') {
931 val = card ? false : '{{false}}'
932 } else if (val.trim() === 'true') {
933 val = card ? true : '{{true}}'
939 reason: 'ERROR: if value cannot be ' + val + '. The default value is true or false.'
944 const content = val.replace('{{', '').replace('}}', '')
945 val = !card ? '{{!(' + content + ')}}' :
946 REG_DATA_BINDING.test(val) ? '!{{' + content + '}}' : '!' + content
948 const value = bind(val, undefined, false, out, nodeLoc)
961 function validateElif(val, out, flag, nodeLoc, relativePath) { argument
962 if (!REG_DATA_BINDING.test(val)) {
963 val = card ? val : '{{' + val + '}}'
965 if (val) {
967 const first = val.indexOf('&&')
969 '{{!(' + val.substr(2, first - 2) + ')' :
970 REG_DATA_BINDING.test(val) ?
971 '!{{' + val.substr(2, first - 2) :
972 '!' + val.substr(0, first)
973 val = content + val.substr(first, val.length)
975 const value = bind(val, undefined, false, out, nodeLoc)
989 function validateFor(val, out, nodeLoc, relativePath) { argument
991 if (val) {
992 if (val.startsWith('{{') && val.endsWith('}}')) {
993 val = val.substr(2, val.length - 4)
996 const suffix = val.match(/(?<=in\s)(.*)/)
997 const prefix = val.match(/(.*)(?=\s+in\s+)/)
1008 forMatch = bind('{{' + val + '}}', undefined, false, out, nodeLoc)
1044 function validateAppend(val, out, nodeLoc, relativePath) { argument
1045 if (val) {
1046 out.jsonTemplate.append = bind(val, undefined, true, out, nodeLoc)
1066 function validateEvent(eventName, val, out, pos, relativePath) { argument
1070 if (name && val) {
1071 if (card && val.match(/(.*)\((.*)\)/)) {
1075 reason: 'ERROR: The event `' + val + '` does not support.'
1079 if (REG_DATA_BINDING.test(val)) {
1080 val = bind.removeAllExpFix(val.trim())
1083 const empty = val.match(/(.*)\(\)$/)
1085 val = empty[1]
1087 const content = val.match(REG_EVENT)
1093 val = eval('(function (evt) {' + bind('{{' + functionName + '(' + paramList + ',evt)}}',
1098 distributeEvent(out, eventName, name, val)
1103 function distributeEvent(out, eventName, name, val) { argument
1109 out.jsonTemplate.catchCaptureEvents[name] = val
1112 out.jsonTemplate.catchBubbleEvents[name] = val
1116 out.jsonTemplate.onCaptureEvents[name] = val
1119 out.jsonTemplate.onBubbleEvents[name] = val
1125 out.jsonTemplate.catchBubbleEvents[name] = val
1128 out.jsonTemplate.onBubbleEvents[name] = val
1132 out.jsonTemplate.events[name] = val