--- a/doc/book/en/devweb/js.rst Tue May 14 18:02:24 2013 +0200
+++ b/doc/book/en/devweb/js.rst Thu May 02 12:22:14 2013 +0200
@@ -191,7 +191,7 @@
* it is called with two parameters: the current node, and a list
containing the loaded (and post-processed node)
-* whenever is returns another function, this function is called in
+* whenever it returns another function, this function is called in
turn with the same parameters as above
This mechanism allows callback chaining.
@@ -209,7 +209,7 @@
from cubicweb.web.views.ajaxcontroller import ajaxfunc
@ajaxfunc(output_type='xhtml')
- def js_frob_status(self, eid, frobname):
+ def frob_status(self, eid, frobname):
entity = self._cw.entity_from_eid(eid)
return entity.view('frob', name=frobname)