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