* 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 )
| 1215 | * @param {Function} handler The method that will be applied |
| 1216 | */ |
| 1217 | function addHandle( attrs, handler ) { |
| 1218 | var arr = attrs.split("|"), |
| 1219 | i = attrs.length; |
| 1220 | |
| 1221 | while ( i-- ) { |
| 1222 | Expr.attrHandle[ arr[i] ] = handler; |
| 1223 | } |
| 1224 | } |
| 1225 | |
| 1226 | /** |
| 1227 | * Checks document order of two siblings |