#474: Fix javascript domain parsing of object names.

This commit is contained in:
Georg Brandl 2010-07-27 14:28:31 +02:00
parent 8c0c728d1b
commit 954e8d0220
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,9 @@
Release 1.0.1 (in development)
==============================
* Fix building with SingleHTMLBuilder when there is no toctree.
* #473: Fix a bug in parsing JavaScript object names.
* #474: Fix building with SingleHTMLBuilder when there is no toctree.
* Fix display names for objects linked to by intersphinx with
explicit targets.

View File

@ -31,6 +31,7 @@ class JSObject(ObjectDescription):
display_prefix = None
def handle_signature(self, sig, signode):
import pdb; pdb.set_trace()
sig = sig.strip()
if '(' in sig and sig[-1:] == ')':
prefix, arglist = sig.split('(', 1)
@ -56,7 +57,7 @@ class JSObject(ObjectDescription):
else:
# just a function or constructor
objectname = ''
fullname = ''
fullname = name
signode['object'] = objectname
signode['fullname'] = fullname