* 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 )
| 898 | * @param {Function} handler The method that will be applied |
| 899 | */ |
| 900 | function addHandle( attrs, handler ) { |
| 901 | var arr = attrs.split("|"), |
| 902 | i = attrs.length; |
| 903 | |
| 904 | while ( i-- ) { |
| 905 | Expr.attrHandle[ arr[i] ] = handler; |
| 906 | } |
| 907 | } |
| 908 | |
| 909 | /** |
| 910 | * Checks document order of two siblings |