mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Change attribute name to data-grammar
This commit is contained in:
@@ -589,7 +589,7 @@ class EditorView extends View
|
||||
|
||||
addGrammarScopeAttribute: ->
|
||||
grammarScope = @editor.getGrammar()?.scopeName?.replace(/\./g, ' ')
|
||||
@attr('data-scope', grammarScope)
|
||||
@attr('data-grammar', grammarScope)
|
||||
|
||||
getModel: ->
|
||||
@editor
|
||||
|
||||
@@ -90,7 +90,7 @@ class ReactEditorView extends View
|
||||
|
||||
addGrammarScopeAttribute: ->
|
||||
grammarScope = @editor.getGrammar()?.scopeName?.replace(/\./g, ' ')
|
||||
@attr('data-scope', grammarScope)
|
||||
@attr('data-grammar', grammarScope)
|
||||
|
||||
scrollTop: (scrollTop) ->
|
||||
if scrollTop?
|
||||
|
||||
Reference in New Issue
Block a user