From 3512605b8c0370905ae9e7a2adc79ddded2d8d20 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 12 Jul 2013 13:12:59 +0200 Subject: fixed addon related bugs --- docs/plugins/addon_plugin.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/plugins/addon_plugin.rst') diff --git a/docs/plugins/addon_plugin.rst b/docs/plugins/addon_plugin.rst index bef5b115e..8f1adf39a 100644 --- a/docs/plugins/addon_plugin.rst +++ b/docs/plugins/addon_plugin.rst @@ -95,7 +95,7 @@ It requires a `dict` that maps event names to function names or a `list` of func print "The underlying event (allDownloadsFinished) for this method is not available through the base class" An advantage of the event listener is that you are able to register and remove the listeners at runtime. -Use `self.manager.addEvent("name", function)`, `self.manager.removeEvent("name", function)` and see doc for +Use `self.manager.listenTo("name", function)`, `self.manager.removeEvent("name", function)` and see doc for :class:`HookManager `. Contrary to ``event_map``, ``function`` has to be a reference and **not** a `string`. -- cgit v1.2.3