(classes)
| 5423 | } |
| 5424 | |
| 5425 | function splitClasses(classes) { |
| 5426 | if (isString(classes)) { |
| 5427 | classes = classes.split(' '); |
| 5428 | } |
| 5429 | |
| 5430 | // Use createMap() to prevent class assumptions involving property names in |
| 5431 | // Object.prototype |
| 5432 | var obj = createMap(); |
| 5433 | forEach(classes, function(klass) { |
| 5434 | // sometimes the split leaves empty string values |
| 5435 | // incase extra spaces were applied to the options |
| 5436 | if (klass.length) { |
| 5437 | obj[klass] = true; |
| 5438 | } |
| 5439 | }); |
| 5440 | return obj; |
| 5441 | } |
| 5442 | |
| 5443 | // if any other type of options value besides an Object value is |
| 5444 | // passed into the $animate.method() animation then this helper code |
no test coverage detected