MCPcopy Create free account
hub / github.com/apache/cloudstack / parse

Function parse

tools/ngui/static/js/lib/angular.js:12353–12363  ·  view source on GitHub ↗
(viewValue)

Source from the content-addressed store, hash-verified

12351 separator = match && new RegExp(match[1]) || attr.ngList || ',';
12352
12353 var parse = function(viewValue) {
12354 var list = [];
12355
12356 if (viewValue) {
12357 forEach(viewValue.split(separator), function(value) {
12358 if (value) list.push(trim(value));
12359 });
12360 }
12361
12362 return list;
12363 };
12364
12365 ctrl.$parsers.push(parse);
12366 ctrl.$formatters.push(function(value) {

Callers

nothing calls this directly

Calls 2

forEachFunction · 0.85
trimFunction · 0.85

Tested by

no test coverage detected