fix(templates): Fix method calls that weren't passing args hash

This commit is contained in:
Drew Regitsky 2015-12-30 16:51:23 -08:00
parent 77cf91f292
commit a02051bd95

View file

@ -3,7 +3,7 @@
class TemplateEditor extends ContenteditableExtension
@onContentChanged: (editor) ->
@onContentChanged: ({editor}) ->
# Run through and remove all code nodes that are invalid
codeNodes = editor.rootNode.querySelectorAll("code.var.empty")
@ -39,7 +39,7 @@ class TemplateEditor extends ContenteditableExtension
editor.restoreSelectionByTextIndex(codeNode, selIndex.startIndex, selIndex.endIndex)
@onKeyDown: (editor) ->
@onKeyDown: ({editor}) ->
# Look for all existing code tags that we may have added before,
# and remove any that now have invalid content (don't start with {{ and
# end with }} as well as any that wrap the current selection