Just use the already existing change grammar event.

This commit is contained in:
joshaber
2016-04-25 15:09:03 -04:00
parent 02bbb14052
commit 9014634b3a
4 changed files with 1 additions and 11 deletions

View File

@@ -323,9 +323,6 @@ class TextEditor extends Model
onDidChangeGrammar: (callback) ->
@emitter.on 'did-change-grammar', callback
onDidUseGrammar: (callback) ->
@displayBuffer.onDidUseGrammar(callback)
# Extended: Calls your `callback` when the result of {::isModified} changes.
#
# * `callback` {Function}