Change attribute name to data-grammar

This commit is contained in:
Thomas Johansen
2014-07-21 22:27:55 +02:00
parent 9c154a2f5a
commit d3b06542a5
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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?