* 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 )
| 935 | * @param {Function} handler The method that will be applied |
| 936 | */ |
| 937 | function addHandle( attrs, handler ) { |
| 938 | var arr = attrs.split("|"), |
| 939 | i = attrs.length; |
| 940 | |
| 941 | while ( i-- ) { |
| 942 | Expr.attrHandle[ arr[i] ] = handler; |
| 943 | } |
| 944 | } |
| 945 | |
| 946 | /** |
| 947 | * Checks document order of two siblings |