MCPcopy Create free account
hub / github.com/binux/qiandao / removePatch

Function removePatch

web/static/components/angularjs/angular.js:2257–2283  ·  view source on GitHub ↗
(param)

Source from the content-addressed store, hash-verified

2255 jQuery.fn[name] = removePatch;
2256
2257 function removePatch(param) {
2258 // jshint -W040
2259 var list = filterElems && param ? [this.filter(param)] : [this],
2260 fireEvent = dispatchThis,
2261 set, setIndex, setLength,
2262 element, childIndex, childLength, children;
2263
2264 if (!getterIfNoArguments || param != null) {
2265 while(list.length) {
2266 set = list.shift();
2267 for(setIndex = 0, setLength = set.length; setIndex < setLength; setIndex++) {
2268 element = jqLite(set[setIndex]);
2269 if (fireEvent) {
2270 element.triggerHandler('$destroy');
2271 } else {
2272 fireEvent = !fireEvent;
2273 }
2274 for(childIndex = 0, childLength = (children = element.children()).length;
2275 childIndex < childLength;
2276 childIndex++) {
2277 list.push(jQuery(children[childIndex]));
2278 }
2279 }
2280 }
2281 }
2282 return originalJqFn.apply(this, arguments);
2283 }
2284}
2285
2286var SINGLE_TAG_REGEXP = /^<(\w+)\s*\/?>(?:<\/\1>|)$/;

Callers

nothing calls this directly

Calls 1

jQueryFunction · 0.85

Tested by

no test coverage detected