doc/book/en/devweb/js.rst
branchstable
changeset 8987 d9195dce3a5b
parent 8128 0a927fe4541b
child 9567 b87c09f853d3
--- 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)