+ modelDataChanged: function(property, value) {
+ console.log('modelDataChanged');
+ if (this.editor.getCode() != value) {
+ this.editor.setCode(value);
+ }
+ },
+
+ modelStateChanged: function(property, value) {
+ if (value == 'synced' || value == 'dirty') {
+ this.parent.unfreeze();
+ } else if (value == 'unsynced') {
+ this.parent.freeze('Niezsynchronizowany...');
+ } else if (value == 'loading') {
+ this.parent.freeze('Ładowanie...');
+ } else if (value == 'saving') {
+ this.parent.freeze('Zapisywanie...');
+ }
+ },
+