class_docstr: Description of a JavaScript object.
class_docstr_tok: ["Description","of","a","JavaScript","object","."]
docstr: Handle object de-nesting after content
  
  If this class is a nestable object, removing the last nested class prefix
  ends further nesting in the object.
  
  If this class is not a nestable object, the list of classes should not
  be altered as we didn't affect the nesting levels in
  :py:meth:`before_content`.
docstr_tok: ["Handle","object","de-nesting","after","content","If","this","class","is","a","nestable","object",",","removing","the","last","nested","class","prefix","ends","further","nesting","in","the","object",".","If","this","class","is","not","a","nestable","object",",","the","list","of","classes","should","not","be","altered","as","we","did","n't","affect","the","nesting","levels","in",":","py",":","meth",":","`","before_content","`","."]
code: def after_content(self) -> None:
      """Handle object de-nesting after content
  
      If this class is a nestable object, removing the last nested class prefix
      ends further nesting in the object.
  
      If this class is not a nestable object, the list of classes should not
      be altered as we didn't affect the nesting levels in
      :py:meth:`before_content`.
      """
      objects = self.env.ref_context.setdefault("js:objects", [])
      if self.allow_nesting:
          with contextlib.suppress(IndexError):
              objects.pop()
  
      self.env.ref_context["js:object"] = (
          objects[-1] if len(objects) > 0 else None
      )
  
imports: from __future__ import annotations
  import contextlib
  from typing import TYPE_CHECKING, Any, cast
  from docutils import nodes
  from docutils.parsers.rst import directives
  from sphinx import addnodes
  from sphinx.directives import ObjectDescription
  from sphinx.domains import Domain, ObjType
  from sphinx.domains.python import _pseudo_parse_arglist
  from sphinx.locale import _, __
  from sphinx.roles import XRefRole
  from sphinx.util import logging
  from sphinx.util.docfields import Field, GroupedField, TypedField
  from sphinx.util.docutils import SphinxDirective
  from sphinx.util.nodes import make_id, make_refnode, nested_parse_with_titles
label_desc: Use image node_id 7 for calling the JSObject obj's underlying member method code with example usage: obj.after_content() without return types