* Set or clear the hashkey for an object. * @param obj object * @param h the hashkey (!truthy to delete the hashkey)
(obj, h)
| 377 | * @param h the hashkey (!truthy to delete the hashkey) |
| 378 | */ |
| 379 | function setHashKey(obj, h) { |
| 380 | if (h) { |
| 381 | obj.$$hashKey = h; |
| 382 | } |
| 383 | else { |
| 384 | delete obj.$$hashKey; |
| 385 | } |
| 386 | } |
| 387 | |
| 388 | /** |
| 389 | * @ngdoc function |