 
 
   events: => _.extend super,
-    'blur input#link': => @onLinkChange()
+    'blur input#link': @onBlurInput
     'keyup input#link': @onKeyupInput
 
 



  onKeyupInput: (event) =>
    switch event.keyCode
      when athena.lib.util.keys.ENTER
        @onLinkChange()
      when athena.lib.util.keys.ESCAPE
        @$('input#link').val @model.link?() ? ''
        @onLinkChange()


  onLinkChange: =>
    @alert() # hide
    link = @$('input#link').val().trim()
    link = acorn.util.urlFix link

    # idempotent

    if link is ''
      # cancel link change if no empty links
      unless @options.allowEmptyLink
        @$linkContainer.children('input#link').val @model.link?()
        return

      @model.link link
