Commits

Anonymous committed 9c76ba1

Javascript functions are not longer prefixed with ``None``.

Comments (0)

Files changed (1)

sphinx/domains/javascript.py

         signode['object'] = objectname
         signode['fullname'] = fullname
 
-        signode += addnodes.desc_addname(nameprefix, nameprefix)
+        if nameprefix:
+            signode += addnodes.desc_addname(nameprefix, nameprefix)
         signode += addnodes.desc_name(name, name)
         if self.has_arguments:
             signode += addnodes.desc_parameterlist()