Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created November 15, 2011 15:54
Show Gist options
  • Select an option

  • Save eduardolundgren/1367411 to your computer and use it in GitHub Desktop.

Select an option

Save eduardolundgren/1367411 to your computer and use it in GitHub Desktop.
Testing
deleteSelectedNode: function() {
var instance = this;
var strings = instance.getStrings();
var selectedNode = instance.selectedNode;
if (selectedNode && !selectedNode.get(REQUIRED) && confirm(strings[DELETE_NODES_MESSAGE])) {
selectedNode.close();
instance.editingNode = instance.selectedNode = null;
instance.stopEditing();
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment