Network.prototype.editNodeMode=function(){console.log("please use editNode instead of editNodeMode");returnthis.manipulation.editNode.apply(this.manipulation,arguments);};
// when using the gui, enable edit mode if it wasnt already.
// when using the gui, enable edit mode if it wasnt already.
if(this.editMode!==true){
if(this.editMode!==true){
this.enableEditMode();
this.enableEditMode();
@ -272,7 +272,7 @@ class ManipulationSystem {
if(this.options.editNode.length===2){
if(this.options.editNode.length===2){
this.options.editNode(data,(finalizedData)=>{
this.options.editNode(data,(finalizedData)=>{
if(finalizedData!==null&&finalizedData!==undefined&&this.inMode==='delete'){// if for whatever reason the mode has changes (due to dataset change) disregard the callback) {
if(finalizedData!==null&&finalizedData!==undefined&&this.inMode==='editNode'){// if for whatever reason the mode has changes (due to dataset change) disregard the callback) {