MCPcopy Create free account
hub / github.com/microsoft/SandDance / _processArgs

Function _processArgs

docs/app/js/sanddance-app.js:21692–21708  ·  view source on GitHub ↗
(argsList)

Source from the content-addressed store, hash-verified

21690 var objects = [];
21691 var stylesheet = (0, _stylesheet.Stylesheet).getInstance();
21692 function _processArgs(argsList) {
21693 for(var _i = 0, argsList_1 = argsList; _i < argsList_1.length; _i++){
21694 var arg = argsList_1[_i];
21695 if (arg) {
21696 if (typeof arg === "string") {
21697 if (arg.indexOf(" ") >= 0) _processArgs(arg.split(" "));
21698 else {
21699 var translatedArgs = stylesheet.argsFromClassName(arg);
21700 if (translatedArgs) _processArgs(translatedArgs);
21701 else // Avoid adding the same class twice.
21702 if (classes.indexOf(arg) === -1) classes.push(arg);
21703 }
21704 } else if (Array.isArray(arg)) _processArgs(arg);
21705 else if (typeof arg === "object") objects.push(arg);
21706 }
21707 }
21708 }
21709 _processArgs(args);
21710 return {
21711 classes: classes,

Callers 1

extractStylePartsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected