Subdocument


Subdocument.prototype.inspect()

Helper for console.log


Subdocument.prototype.ownerDocument()

Returns:
  • «Document»

Returns the top level document of this sub-document.


Subdocument.prototype.parent()

Returns this sub-documents parent document.


Subdocument.prototype.remove()

Parameters
  • [options] «Object»
  • [callback] «Function» optional callback for compatibility with Document.prototype.remove

Null-out this subdoc


function Object() { [native code] }.prototype.$parent()

Returns this sub-documents parent document.