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 is same as connect function. To disconnect c2.fun1 use the following code
Where fun1 is the reference function and fun2 is connected function. Here a, b are objects.
$.disconnectAll function is used to disconnect all connected functions.
Syntax is same as connect function. To disconnect c2.fun1 use the following code
1.$.disconnect(a,'fun1',b,fun2);$.disconnectAll function is used to disconnect all connected functions.
1.$.disconnectAll(a,'fun1'); 
 
 
 Posts
Posts
 
 
 
 
 
0 comments:
Post a Comment