(classes)
| 5097 | } |
| 5098 | |
| 5099 | function splitClasses(classes) { |
| 5100 | if (isString(classes)) { |
| 5101 | classes = classes.split(' '); |
| 5102 | } |
| 5103 | |
| 5104 | // Use createMap() to prevent class assumptions involving property names in |
| 5105 | // Object.prototype |
| 5106 | var obj = createMap(); |
| 5107 | forEach(classes, function(klass) { |
| 5108 | // sometimes the split leaves empty string values |
| 5109 | // incase extra spaces were applied to the options |
| 5110 | if (klass.length) { |
| 5111 | obj[klass] = true; |
| 5112 | } |
| 5113 | }); |
| 5114 | return obj; |
| 5115 | } |
| 5116 | |
| 5117 | // if any other type of options value besides an Object value is |
| 5118 | // passed into the $animate.method() animation then this helper code |
no test coverage detected