When submit form not validate this error: No value provided for variable {s} leaflet-src.js:142
code:
template: function (str, data) {
return str.replace(/{ *([\w_]+) *}/g, function (str, key) {
var value = data[key];
if (value === undefined) {
142 line: throw new Error('No value provided for variable ' + str);
Uncaught Error: No value provided for variable {s}
} else if (typeof value === 'function') {
value = value(data);
}
return value;
});
},
When submit form not validate this error: No value provided for variable {s} leaflet-src.js:142
code:
template: function (str, data) {
return str.replace(/{ *([\w_]+) *}/g, function (str, key) {
var value = data[key];
if (value === undefined) {
142 line: throw new Error('No value provided for variable ' + str);
Uncaught Error: No value provided for variable {s}
} else if (typeof value === 'function') {
value = value(data);
}
return value;
});
},