From b9e90f2fdd38948a347e39596ebc0bc8464b7626 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 4 Sep 2014 08:06:19 -0600 Subject: [PATCH] Fix editor observation docs --- src/editor.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index 3ade2ecb9..342d9cc0f 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -24,12 +24,12 @@ TextMateScopeSelector = require('first-mate').ScopeSelector # ## Accessing Editor Instances # # The easiest way to get hold of `Editor` objects is by registering a callback -# with `::eachEditor` on the `atom.workspace` global. Your callback will then -# be called with all current editor instances and also when any editor is +# with `::observeTextEditors` on the `atom.workspace` global. Your callback will +# then be called with all current editor instances and also when any editor is # created in the future. # # ```coffee -# atom.workspace.eachEditor (editor) -> +# atom.workspace.observeTextEditors (editor) -> # editor.insertText('Hello World') # ``` #