summaryrefslogtreecommitdiff
path: root/sphinx/domains/javascript.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r--sphinx/domains/javascript.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py
index 9d6bf1908..9ecf4a4b0 100644
--- a/sphinx/domains/javascript.py
+++ b/sphinx/domains/javascript.py
@@ -398,6 +398,16 @@ class JavaScriptDomain(Domain):
yield refname, refname, type, docname, \
refname.replace('$', '_S_'), 1
+ def get_full_qualified_name(self, node):
+ # type: (nodes.Node) -> unicode
+ modname = node.get('js:module')
+ prefix = node.get('js:object')
+ target = node.get('reftarget')
+ if target is None:
+ return None
+ else:
+ return '.'.join(filter(None, [modname, prefix, target]))
+
def setup(app):
# type: (Sphinx) -> Dict[unicode, Any]