10 examples of 'unbind jquery' in JavaScript

Every line of 'unbind jquery' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
481private _unbind(): void {
482 /* istanbul ignore else */
483 if (this.prefetchIgnore !== true) {
484 document.removeEventListener('mouseover', this._onLinkEnter);
485 document.removeEventListener('touchstart', this._onLinkEnter);
486 }
487 document.removeEventListener('click', this._onLinkClick);
488 window.removeEventListener('popstate', this._onStateChange);
489}
110function unbind(el: HTMLElement): void {
111 const wt = el as HTMLElement & ElementWithTooltip;
112
113 if (wt._components) {
114 toggle.bind(el)(null);
115 }
116
117 el.removeEventListener("click", toggle);
118 el.removeEventListener("mouseenter", toggle);
119 el.removeEventListener("mouseleave", toggle);
120}
46unbind() {
47 this.view.unbind();
48}
206unbind: function unbind(el) {
207 var previousnode = el.previousSibling;
208
209 if (previousnode && _utils.default.hasClass(previousnode, 'h-wordcount')) {
210 previousnode.parentNode.removeChild(previousnode);
211 }
212}
45unbind: function unbind(el, binding, value) {
46 value.child.$off('event');
47 value.child.$off('input');
48 binding.value.$bus.$off('reset');
49 binding.value.$bus.$off('validate');
50}
39unbind: function unbind(elem, event, handler) {
40 if (elem && elem !== 'undefined' && event && handler) {
41
42 event = event === 'mousewheel' ? document.onmousewheel !== undefined ? "mousewheel" : "DOMMouseScroll" : event;
43
44 var handlers = [];
45 if (Array.isArray(handler) && handler.length > 0) {
46 handlers = handler;
47 } else {
48 handlers.push(handler);
49 }
50
51 if (document.removeEventListener) {
52
53 handlers.forEach(function (e) {
54 elem.removeEventListener(event, e, false);
55 });
56 } else {
57
58 handlers.forEach(function (e) {
59 elem.removeEventListener('on' + event, e);
60 });
61 }
62 }
63},
836unbind: function unbind(el, binding) {
837 binding.zBound = false;
838}
61function unBind() {
62 bounds.forEach(function(bound) {
63 bound.el.removeEventListener('mousedown', bound.handle.start)
64
65 bound.el.removeEventListener('mouseup', bound.handle.end)
66 bound.el.removeEventListener('mouseout',bound.handle.end)
67 })
68}
52unbind(moveCallback: () => void = null) {
53 this.handleElement.removeEventListener('mousedown', this.mouseDownBound);
54 this.handleElement.removeEventListener('touchstart', this.touchStartBound);
55 this.handleElement.removeEventListener('touchend', this.touchEndBound);
56 this.handleElement.removeEventListener('touchcancel', this.touchCancelBound);
57 this.handleElement.removeEventListener('touchmove', this.touchMoveBound);
58
59 let i = this.moveCallbacks.indexOf(moveCallback);
60 if (i >= 0) {
61 this.moveCallbacks.splice(i, 1);
62 }
63}
94unbind: function unbind(behavior, element) {
95 if (typeof behavior.plugin.destroy === 'function') {
96 behavior.plugin.destroy();
97 behavior.plugin = null;
98 }
99}

Related snippets