MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / validateKeyword

Function validateKeyword

src/common/style/CartoCSS.js:4164–4172  ·  view source on GitHub ↗
(value, selector)

Source from the content-addressed store, hash-verified

4162 }
4163
4164 function validateKeyword(value, selector) {
4165 if (typeof this.selector(selector).type === 'object') {
4166 return this.selector(selector).type
4167 .indexOf(value.value[0].value) !== -1;
4168 } else {
4169 // allow unquoted keywords as strings
4170 return this.selector(selector).type === 'string';
4171 }
4172 }
4173
4174 var i;
4175 if (!this.selector(selector)) {

Callers 1

CartoCSS.jsFile · 0.85

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected