In jQuery to disconnect one function from another function then $.disconnect is used. Once this statement gets executed, function gets disconnected from reference function and the connected function will not be executed after the code. Syntax: $.disconnect function is used to disconnect connected functions. $.disconnect(a,'fun1',b,fun2)
Where fun1 is the reference function and fun2 is connected function. Here a, b are objects.
Syntax: $.disconnectAll function is used to disconnect all connected functions. $.disconnectAll(a,'fun1');
Join MindStick Community
You need to log in or register to vote on answers or questions.
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
In jQuery to disconnect one function from another function then $.disconnect is used. Once this statement gets executed, function gets disconnected from reference function and the connected function will not be executed after the code.
Syntax: $.disconnect function is used to disconnect connected functions.
$.disconnect(a,'fun1',b,fun2)
Where fun1 is the reference function and fun2 is connected function. Here a, b are objects.
Syntax: $.disconnectAll function is used to disconnect all connected functions.
$.disconnectAll(a,'fun1');