 +                          if((typeof model[i][0] === 'object' || typeof model[i][model[i].length - 1] === 'object') && (!isNumber(delPro) || i == rootLevel)){
 +                              for(var k = 0; k < model[i].length; k++){
 +                                  if(i == rootLevel){
-+                                      if(k == objLevel){ 
++                                      if(k == objLevel){
 +                                          if(model[i][k][delPro] !== undefined){
 +                                              arrayObjStack = i;
 +                                          }
 +                                          self.removeKeyFromStack(model[i][k], parentLevelObj,delPro,objLevel,rootLevel,objectDelete);
 +                                       }
 +                                      if(objectDelete){
-+                                          delete  model[i][delPro]; 
++                                          delete  model[i][delPro];
 +                                          model[i][delPro] = '';
 +                                       }
 +                                  }else{

     this.container.appendChild(this.control);
 
     // Any special formatting that needs to happen after the input is added to the dom
@@ -2482,13 +2581,34 @@
     else {
       container = document.createElement('div');
       $each(this.property_order, function(i,key) {

+      else{
+          editor.container.style.display = 'none';
+      }
+
     });
     self.refreshValue();
     self.refreshHeaderText();
@@ -4547,17 +5283,18 @@
     this.switcher = this.theme.getSwitcher(this.display_text);
     container.appendChild(this.switcher);
     this.switcher.addEventListener('change',function(e) {
