(classes)
| 4768 | } |
| 4769 | |
| 4770 | function splitClasses(classes) { |
| 4771 | if (isString(classes)) { |
| 4772 | classes = classes.split(' '); |
| 4773 | } |
| 4774 | |
| 4775 | // Use createMap() to prevent class assumptions involving property names in |
| 4776 | // Object.prototype |
| 4777 | var obj = createMap(); |
| 4778 | forEach(classes, function(klass) { |
| 4779 | // sometimes the split leaves empty string values |
| 4780 | // incase extra spaces were applied to the options |
| 4781 | if (klass.length) { |
| 4782 | obj[klass] = true; |
| 4783 | } |
| 4784 | }); |
| 4785 | return obj; |
| 4786 | } |
| 4787 | |
| 4788 | // if any other type of options value besides an Object value is |
| 4789 | // passed into the $animate.method() animation then this helper code |
no test coverage detected