📝 Update docs for TextEditor::addGutter

TextEditor::addGutter should be called directly.
This commit is contained in:
Maxim Sokolov
2015-08-26 11:16:23 +03:00
parent ff93fdf617
commit fac979f71d
2 changed files with 7 additions and 9 deletions

View File

@@ -21,14 +21,6 @@ class GutterContainer
@gutters = []
@emitter.dispose()
# Creates and returns a {Gutter}.
# * `options` An {Object} with the following fields:
# * `name` (required) A unique {String} to identify this gutter.
# * `priority` (optional) A {Number} that determines stacking order between
# gutters. Lower priority items are forced closer to the edges of the
# window. (default: -100)
# * `visible` (optional) {Boolean} specifying whether the gutter is visible
# initially after being created. (default: true)
addGutter: (options) ->
options = options ? {}
gutterName = options.name

View File

@@ -515,7 +515,13 @@ class TextEditor extends Model
@emitter.on 'did-change-line-number-gutter-visible', callback
# Public: Creates and returns a {Gutter}.
# See {GutterContainer::addGutter} for more details.
# * `options` An {Object} with the following fields:
# * `name` (required) A unique {String} to identify this gutter.
# * `priority` (optional) A {Number} that determines stacking order between
# gutters. Lower priority items are forced closer to the edges of the
# window. (default: -100)
# * `visible` (optional) {Boolean} specifying whether the gutter is visible
# initially after being created. (default: true)
addGutter: (options) ->
@gutterContainer.addGutter(options)