diff --git a/src/view-registry.coffee b/src/view-registry.coffee index c66d1be57..0eb2590cf 100644 --- a/src/view-registry.coffee +++ b/src/view-registry.coffee @@ -65,7 +65,7 @@ class ViewRegistry # * `modelConstructor` Constructor {Function} for your model. # * `viewConstructor` (Optional) Constructor {Function} for your view. It # should be a subclass of `HTMLElement` (that is, your view should be a - # DOM node) and have a `::setModel()` method which will be called + # DOM node) and have a `::setModel()` method which will be called # immediately after construction. If you don't supply this property, you # must supply the `createView` property with a function that never returns # `undefined`. @@ -97,12 +97,14 @@ class ViewRegistry # ## Examples # # ### Getting An Editor Element + # # ```coffee # textEditor = atom.workspace.getActiveTextEditor() # textEditorElement = atom.views.getView(textEditor) # ``` # # ### Getting A Pane Element + # # ```coffee # pane = atom.workspace.getActivePane() # paneElement = atom.views.getView(pane)