[Gutter] Add back includeDeprecatedAPIs gate on gutter type decorations

This commit is contained in:
Jess Lin
2015-04-22 11:10:50 -07:00
parent 3949153390
commit df070e9f1f

View File

@@ -1308,7 +1308,7 @@ class TextEditor extends Model
#
# Returns a {Decoration} object
decorateMarker: (marker, decorationParams) ->
if decorationParams.type is 'gutter' and not decorationParams.gutterName
if includeDeprecatedAPIs and decorationParams.type is 'gutter' and not decorationParams.gutterName
deprecate("Decorations of `type: 'gutter'` have been renamed to `type: 'line-number'`.")
decorationParams.type = 'line-number'
@displayBuffer.decorateMarker(marker, decorationParams)