summaryrefslogtreecommitdiff
path: root/sphinx/domains/javascript.py
diff options
context:
space:
mode:
authorDaniel Neuhäuser <ich@danielneuhaeuser.de>2010-04-01 19:24:24 +0000
committerDaniel Neuhäuser <ich@danielneuhaeuser.de>2010-04-01 19:24:24 +0000
commitabfdc012f9c8d47aad08e9a3c2b21e289fd7d0b4 (patch)
treec2bd255542bb5fb48adbcdf0f578310a5e0b94a7 /sphinx/domains/javascript.py
parentae0d464fb1c06debc119c693f6ab58fb3e4c45d6 (diff)
downloadsphinx-git-abfdc012f9c8d47aad08e9a3c2b21e289fd7d0b4.tar.gz
Javascript functions are not longer prefixed with ``None``.
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r--sphinx/domains/javascript.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py
index 9698c3d07..d04c101d6 100644
--- a/sphinx/domains/javascript.py
+++ b/sphinx/domains/javascript.py
@@ -56,7 +56,8 @@ class JSObject(ObjectDescription):
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()