     _settings.$element.on 'keyup', ( event ) ->
       _query = $(@).val()
 
+      # Keyup Event
       _settings.onKeyup( _settings ) unless _settings.onKeyup is null
 
       if _query == ''
         $( _settings.itemNode ).removeClass( _settings.hiddenClass )
         _clearEmptyMessage()
 
+        # Clear Event
         _settings.onClear( _settings ) unless _settings.onClear is null
 
       _clearEmptyMessage()

        $( "<p class='#{ emptyClass }'>There are no results matching '#{ _query }'.</p>" )
          .insertAfter( $( _settings.itemNode ).last() )

      _settings.onEmpty( _settings ) unless _settings.onEmpty is null

  # -------------------------------------

          .closest( _settings.itemNode )
          .removeClass( _settings.hiddenClass )

        # Found Event
        _settings.onFound( _settings ) unless _settings.onFound is null

    _handleEmptyResults()
