From b256a1450a2b68e13d40c6996ee4be667effbea1 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 28 Jul 2016 15:43:08 -0600 Subject: [PATCH] Remove grammars from TextEditorElement.initialize --- src/text-editor-element.coffee | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/text-editor-element.coffee b/src/text-editor-element.coffee index 7ffa5d8aa..42bce4978 100644 --- a/src/text-editor-element.coffee +++ b/src/text-editor-element.coffee @@ -27,7 +27,6 @@ class TextEditorElement extends HTMLElement @assert = atom.assert @views = atom.views @styles = atom.styles - @grammars = atom.grammars @emitter = new Emitter @subscriptions = new CompositeDisposable @@ -81,13 +80,12 @@ class TextEditorElement extends HTMLElement @subscriptions.add @component.onDidChangeScrollLeft => @emitter.emit("did-change-scroll-left", arguments...) - initialize: (model, {@views, @themes, @workspace, @assert, @styles, @grammars}, @autoHeight = true, @scrollPastEnd = true) -> + initialize: (model, {@views, @themes, @workspace, @assert, @styles}, @autoHeight = true, @scrollPastEnd = true) -> throw new Error("Must pass a views parameter when initializing TextEditorElements") unless @views? throw new Error("Must pass a themes parameter when initializing TextEditorElements") unless @themes? throw new Error("Must pass a workspace parameter when initializing TextEditorElements") unless @workspace? throw new Error("Must pass an assert parameter when initializing TextEditorElements") unless @assert? throw new Error("Must pass a styles parameter when initializing TextEditorElements") unless @styles? - throw new Error("Must pass a grammars parameter when initializing TextEditorElements") unless @grammars? @setModel(model) this @@ -134,7 +132,6 @@ class TextEditorElement extends HTMLElement themes: @themes workspace: @workspace assert: @assert - grammars: @grammars scrollPastEnd: @scrollPastEnd ) @rootElement.appendChild(@component.getDomNode())