title: Uncaught TypeError: $(...).jstree(...).hide_all is not a function
body: <p>Hi i 'm trying to hide all nodes in jstree when the search has no results but I am getting the following error.</p>
  
  <blockquote>
    <p>Uncaught TypeError: $(...).jstree(...).hide_all is not a function</p>
  </blockquote>
  
  <p>Here is the code I use:</p>
  
  <pre><code>            $("#divtreeComponentes").jstree("destroy");
          $("#divtreeComponentes").jstree({
              "core": {
                  // so that create works
                  "check_callback": true,
  
                  "data": data2
              },
              "checkbox": {
                  "keep_selected_style": false
              },
              "search": {
                  "show_only_matches": true,//filtering
                  "show_only_matches_children": true
  
              },
              "types": {
                  "types": {
                      "disabled": {
                          "check_node": false,
                          "uncheck_node": false
                      }
                  }
              },
              "plugins": ["checkbox", "search", "sort"]
          }).on('search.jstree', function (nodes, str, res) {
              if (str.nodes.length===0) {
                  $('#divtreeComponentes').jstree(true).hide_all();
              }
          })
  
          $('#Filtrar_Usuarios').keyup(function(){
              $('#divtreeComponentes').jstree(true).show_all();
              $('#divtreeComponentes').jstree('search', $(this).val());
          });
  </code></pre>
  
  <p>are any ideas that may be happening ?</p>
  
  <p>thanks for helping! </p>