MCPcopy Create free account
hub / github.com/apache/cloudstack / JQLiteUnbind

Function JQLiteUnbind

tools/ngui/static/js/lib/angular.js:1614–1633  ·  view source on GitHub ↗
(element, type, fn)

Source from the content-addressed store, hash-verified

1612}
1613
1614function JQLiteUnbind(element, type, fn) {
1615 var events = JQLiteExpandoStore(element, 'events'),
1616 handle = JQLiteExpandoStore(element, 'handle');
1617
1618 if (!handle) return; //no listeners registered
1619
1620 if (isUndefined(type)) {
1621 forEach(events, function(eventHandler, type) {
1622 removeEventListenerFn(element, type, eventHandler);
1623 delete events[type];
1624 });
1625 } else {
1626 if (isUndefined(fn)) {
1627 removeEventListenerFn(element, type, events[type]);
1628 delete events[type];
1629 } else {
1630 arrayRemove(events[type], fn);
1631 }
1632 }
1633}
1634
1635function JQLiteRemoveData(element) {
1636 var expandoId = element[jqName],

Callers 1

JQLiteRemoveDataFunction · 0.85

Calls 4

JQLiteExpandoStoreFunction · 0.85
isUndefinedFunction · 0.85
forEachFunction · 0.85
arrayRemoveFunction · 0.85

Tested by

no test coverage detected