Description about the global detach event.
authorRui Guo <firemeteor.guo@gmail.com>
Fri, 12 Jun 2009 13:20:52 +0000 (12 21:20 +0800)
committerRui Guo <firemeteor.guo@gmail.com>
Fri, 12 Jun 2009 13:20:52 +0000 (12 21:20 +0800)
src/drafts/scripting

index 44ee3a0..b69bfec 100644 (file)
@@ -288,8 +288,13 @@ or obj:unhook(ticket, handler)
 Events:
 --------
 cmdexecuted
-detached
+detached (display, is_remote)
 
+For detach-events, it's not enough to just listen to 'cmdexecuted'
+command, since this command is not used for remote detaches. So
+scripts looking to do something on a detach event need to hook to
+this event, instead of hooking to 'cmdexecuted' event and looking
+for 'detach' command.
 
 ===================
 The Implementation