* Adds the same handler for all of the specified attrs * @param {String} attrs Pipe-separated list of attributes * @param {Function} handler The method that will be applied
(attrs, handler)
| 351 | */ |
| 352 | |
| 353 | function addHandle(attrs, handler) { |
| 354 | var arr = attrs.split("|"), |
| 355 | i = attrs.length; |
| 356 | |
| 357 | while (i--) { |
| 358 | Expr.attrHandle[arr[i]] = handler; |
| 359 | } |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Checks document order of two siblings |