MCPcopy Index your code
hub / github.com/angular-ui/ui-router / arrayClasses

Function arrayClasses

test/angular/1.3/angular.js:20910–20925  ·  view source on GitHub ↗
(classVal)

Source from the content-addressed store, hash-verified

20908 }
20909
20910 function arrayClasses(classVal) {
20911 if (isArray(classVal)) {
20912 return classVal;
20913 } else if (isString(classVal)) {
20914 return classVal.split(' ');
20915 } else if (isObject(classVal)) {
20916 var classes = [];
20917 forEach(classVal, function(v, k) {
20918 if (v) {
20919 classes = classes.concat(k.split(' '));
20920 }
20921 });
20922 return classes;
20923 }
20924 return classVal;
20925 }
20926 }];
20927}
20928

Callers 2

classDirectiveFunction · 0.70
ngClassWatchActionFunction · 0.70

Calls 4

isArrayFunction · 0.85
isStringFunction · 0.70
isObjectFunction · 0.70
forEachFunction · 0.70

Tested by

no test coverage detected