title: Any way to prevent "select_node.jstree" from being called when node closed in the jstree?
body: <p>When you open nodes, it's fine.  The "select_node.jstree" is not called.  However, when you select a node and then close its' parent, jstree fires "select_node.jstree" for that parent node for some strange reason.  Is there any way around this or is that just a flaw with jstree?  I'd appreciate the help!  Here's my code:</p>
  
  <pre><code>        $("#RequirementsTree")
      .bind("select_node.jstree", function(event, data) {
              ReqNode = data.rslt.obj;
              $("#req_tree_modal").dialog({ height: 400, width: 600, modal: true, closeOnEscape: true, resizable: false, show: "blind" });
              $("#RMSDoc_ParentNodeID").val(data.rslt.obj.attr("id").substring(4));
              if(is_requirement_node(data))
              {
                  dispEditRequirementView();
  
                  var ReqCheck = data.rslt.obj.attr("name");
  
                  @* This is a REQUIREMENT *@
                  if(ReqCheck == "requirement")
                  {
                      // Ajax call to Server with requirement id passed in
                      $.ajax({
                          type: "POST",
                          url: '@Url.Content("~/RMS/getRequirementStateByID")',
                          data: {
                              ReqID : data.rslt.obj.attr("id").substring(4)
                          },
                          success: function(new_data) {
                              if(new_data == 1){
                                  $("#RMSDoc_ReqEnabled").attr("checked", "checked");
                                  $("#RMSDoc_ReqEnabled").val("true");
                              }
                              else if(new_data == 0) {
                                  $("#RMSDoc_ReqEnabled").removeAttr("checked");
                                  $("#RMSDoc_ReqEnabled").val("false");
                              }
                          }   
                      });
  
                      $("#RMSDoc_RBSRequirement_RequirementsId").val(data.rslt.obj.attr("id").substring(4));
                      $("#RMSDoc_RBSRequirement_RequirementsText").val($.trim(data.rslt.obj.text()));
                      $("#ExistingTreeSubmit").val("@Model.RMSDoc.RMSEditReqButton.ConfigurableLabelDesc");
  
                  }
                  else {
                      alert("Requirement node select error");
                  }
              }
              @* This is a TREE BRANCH *@
              else
              {
                  dispAddRequirementView();
                  $("#RMSDoc_TreeBranch_Text").val($.trim($('.jstree-clicked').text()));
                  $("#RMSDoc_TreeBranch_id").val(data.rslt.obj.attr("id").substring(4));
                  $("#RMSDoc_TreeBranch_Level").val(data.rslt.obj.attr("name").substring(7));
                  $("#RMSDoc_RBSRequirement_RequirementsText").val("");
                  $("#ExistingTreeSubmit").val("@Model.RMSDoc.RMSCreateReqButton.ConfigurableLabelDesc");
              }
       })
  </code></pre>