Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ng-jsoneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down