 
           return  unless cb
           
-          @addCommand toCommand model, cb
+          @editor.commands.addCommand toCommand(model, cb)
 
       #@addKeyCombo 'settings',   'Ctrl-,',           kd.noop # override default ace settings view
 

class Ace extends KDView

  ACE_READY = no
  @registerStaticEmitter()

  getscript globals.acePath, (err) =>


      @gotoLineModal.modalTabs.forms.Go.focusFirstElement()


