       event.stopPropagation();
 
     $(document).on 'click', (event) =>
-      # return if $(event.target).closest('[data-context-button]').length > 0
       @close_all_context_menus()
 
     $(window).on 'blur', =>

        .find('[data-context-target]')
        .clone()
        .openContextMenu(x, y, from_mouse)

        # .first()
        # .addClass('from-mouse')
        # .css(top: y, left: x)
        # .show()

  constructor: ->
    $.fn.openContextMenu = (x, y, from_mouse = true) ->

        data: '_'
        type: 'POST'
        beforeSend: (jqXHR, settings) ->
          $(element).trigger('before:context:ajax', [jqXHR, settings, from_mouse])
        success: (data) ->
          $(data)
            .openContextMenu(x, y, from_mouse)
