(obj)
| 749 | // serialization of parameters would need to be identical |
| 750 | // to the one done by angular for cache keys to match. |
| 751 | function sortedKeys(obj) { |
| 752 | var keys = []; |
| 753 | for (var key in obj) { |
| 754 | if (obj.hasOwnProperty(key)) { |
| 755 | keys.push(key); |
| 756 | } |
| 757 | } |
| 758 | return keys.sort(); |
| 759 | } |
| 760 | |
| 761 | function forEachSorted(obj, iterator, context) { |
| 762 | var keys = sortedKeys(obj); |