diff --git a/ng-jsoneditor.js b/ng-jsoneditor.js index b11f9c7..f84cfb9 100644 --- a/ng-jsoneditor.js +++ b/ng-jsoneditor.js @@ -65,6 +65,10 @@ editor.setMode(v); } else if (k === 'name') { editor.setName(v); + } else if (k === 'ace') { + // "ace" object cannot be compared, sorry + } else if (k === 'modes' && angular.toJson(newValue[k]) === angular.toJson(oldValue[k])) { + // "modes" has not been changed } else { //other settings cannot be changed without re-creating the JsonEditor editor = _createEditor(newValue); $scope.updateJsonEditor();