MCPcopy Create free account
hub / github.com/JsAaron/jQuery / addHandle

Function addHandle

2.0.3/Sizzle-annotation.js:398–405  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected