diff options
Diffstat (limited to 'api/dwb-js.7')
-rw-r--r-- | api/dwb-js.7 | 41 |
1 files changed, 9 insertions, 32 deletions
diff --git a/api/dwb-js.7 b/api/dwb-js.7 index 48da24da..ff076d23 100644 --- a/api/dwb-js.7 +++ b/api/dwb-js.7 @@ -2344,40 +2344,17 @@ Overall return value from all connected callback functions .nr an-break-flag 1 .br .ps +1 -\fBBoolean signals.disconnect(Number id)\fR +\fBBoolean signals.disconnect(Number id|Function callback)\fR .RS 4 .sp -disconnect from a signal +Disconnect from a signal .PP -\fIid\fR -.RS 4 -The id returned from connect -.RE -.PP -\fIreturns\fR -.RS 4 -true if the signal was disconnected, false if the signal wasn\(cqt found or was already disconnected\&. -.RE -.RE -.sp -.it 1 an-trap -.nr an-no-space-flag 1 -.nr an-break-flag 1 -.br -.ps +1 -\fBBoolean signals.disconnectByFunction(Function callback)\fR -.RS 4 -.sp -disconnect from all signals with matching callback function -.PP -\fIcallback\fR +\fIid|callback\fR .RS 4 -The callback function passed to connect -.RE -.PP -\fIreturns\fR -.RS 4 -true if signals were disconnected, false if no signal was disconnected +The id returned from +\fBconnect\fR +or the callback function passed to +\fBconnect\fR\&. Note that if the same callback is used more than once the signal must be disconnected by id, otherwise the behaviour is undefined\&. .RE .RE .sp @@ -2386,10 +2363,10 @@ true if signals were disconnected, false if no signal was disconnected .nr an-break-flag 1 .br .ps +1 -\fBBoolean signals.disconnectByName(String signal)\fR +\fBvoid signals.disconnectByName(String signal)\fR .RS 4 .sp -disconnect from all signals with matching name, It should be avoided to call disconnectByName on signals implemented by dwb since it will completely stop the emission of the signal in all scripts\&. +Disconnect from all signals with matching name, It should be avoided to call disconnectByName on signals implemented by dwb since it will completely stop the emission of the signal in all scripts\&. .PP \fIsignal\fR .RS 4 |