MinorBugFix- hitBackDeletes LastNode

This commit is contained in:
Curtis SerVaas
2014-10-29 20:54:29 -04:00
parent ef862d52d6
commit b7ef574ae0
+1
View File
@@ -93,6 +93,7 @@ keydownHandler = function(event){ //the entire body is wrapped in this.
} //hitEnter
if(vo.hitBack && vo.empty){
if(vo.rootLevel && vo.parentModel.get("children").length == 1){return;}
if(vo.thisModel.get('children').length != 0){INPUT_PROCESSED=true; return;}
event.preventDefault();
removeNode(vo);