(classes)
| 5443 | } |
| 5444 | |
| 5445 | function splitClasses(classes) { |
| 5446 | if (isString(classes)) { |
| 5447 | classes = classes.split(' '); |
| 5448 | } |
| 5449 | |
| 5450 | // Use createMap() to prevent class assumptions involving property names in |
| 5451 | // Object.prototype |
| 5452 | var obj = createMap(); |
| 5453 | forEach(classes, function(klass) { |
| 5454 | // sometimes the split leaves empty string values |
| 5455 | // incase extra spaces were applied to the options |
| 5456 | if (klass.length) { |
| 5457 | obj[klass] = true; |
| 5458 | } |
| 5459 | }); |
| 5460 | return obj; |
| 5461 | } |
| 5462 | |
| 5463 | // if any other type of options value besides an Object value is |
| 5464 | // passed into the $animate.method() animation then this helper code |
no test coverage detected