diff options
author | Anthony Johnson <aj@ohess.org> | 2017-03-20 13:38:23 -0700 |
---|---|---|
committer | Anthony Johnson <aj@ohess.org> | 2017-03-20 13:38:23 -0700 |
commit | fb3953698be14d9757c348e21adcd871663b6fec (patch) | |
tree | 636e595ac798718637483285b24713ca3221be5c /sphinx/domains/javascript.py | |
parent | 5d8b49d221159c4c7fa52529c6b774b54114433f (diff) | |
download | sphinx-git-fb3953698be14d9757c348e21adcd871663b6fec.tar.gz |
Remove JS domain module feature for null module names
Diffstat (limited to 'sphinx/domains/javascript.py')
-rw-r--r-- | sphinx/domains/javascript.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sphinx/domains/javascript.py b/sphinx/domains/javascript.py index 7415bcb66..0840b2e73 100644 --- a/sphinx/domains/javascript.py +++ b/sphinx/domains/javascript.py @@ -236,8 +236,7 @@ class JSModule(Directive): is useful for splitting up the module definition across multiple sections or files. - :param mod_name: Module name. If the module name is ``nul``, or ``None``, - the module name will be cleared for objects that follow. + :param mod_name: Module name """ has_content = False @@ -252,9 +251,6 @@ class JSModule(Directive): # type: () -> List[nodes.Node] env = self.state.document.settings.env mod_name = self.arguments[0].strip() - if mod_name in ['null', 'None']: - env.ref_context.pop('js:module', None) - return [] env.ref_context['js:module'] = mod_name noindex = 'noindex' in self.options ret = [] |