* 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)
| 396 | */ |
| 397 | |
| 398 | function addHandle(attrs, handler) { |
| 399 | var arr = attrs.split("|"), |
| 400 | i = attrs.length; |
| 401 | |
| 402 | while (i--) { |
| 403 | Expr.attrHandle[arr[i]] = handler; |
| 404 | } |
| 405 | } |
| 406 | |
| 407 | /** |
| 408 | * Checks document order of two siblings |