Home > DeveloperSection > Interviews > What is $.disconnect significance and how it is different from $.disconnectAll ?

Posted on    October-17-2011 2:00 AM

 JQuery JQuery 
 1 Answer(s)
  2023  View(s)
Rate this:

Arun Singh

Total Post:310

Posted on    October-17-2011 12:00 AM

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.

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.

Don't want to miss updates? Please click the below button!

Follow MindStick