diff options
Diffstat (limited to 'js/document/text-document.js')
-rwxr-xr-x | js/document/text-document.js | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/js/document/text-document.js b/js/document/text-document.js index 1132ba65..88464d87 100755 --- a/js/document/text-document.js +++ b/js/document/text-document.js | |||
@@ -120,15 +120,15 @@ var TextDocument = exports.TextDocument = Montage.create(Component, { | |||
120 | 120 | ||
121 | 121 | ||
122 | /** Private Members **/ | 122 | /** Private Members **/ |
123 | _name: { value: null, enumerable: false }, | 123 | _name: { value: null, enumerable: false }, |
124 | _uri: { value: null, enumerable: false }, | 124 | _uri: { value: null, enumerable: false }, |
125 | _documentType: { value: null, enumerable: false }, | 125 | _documentType: { value: null, enumerable: false }, |
126 | _container: {value: null, enumerable: false }, | 126 | _container: { value: null, enumerable: false }, |
127 | _uuid: { value: null, enumerable: false }, | 127 | _uuid: { value: null, enumerable: false }, |
128 | _isActive: { value: true, enumerable: false }, | 128 | _isActive: { value: true, enumerable: false }, |
129 | _dirtyFlag: { value: false, enumerable: false }, | 129 | _needsSave: { value: false, enumarable: false }, |
130 | _callback: { value: null, enumerable: false }, | 130 | _callback: { value: null, enumerable: false }, |
131 | _currentView: { value: null, enumerable: false}, | 131 | _currentView: { value: null, enumerable: false}, |
132 | 132 | ||
133 | /** Getters/Setters **/ | 133 | /** Getters/Setters **/ |
134 | name: { | 134 | name: { |
@@ -161,9 +161,9 @@ var TextDocument = exports.TextDocument = Montage.create(Component, { | |||
161 | set: function(value) { this._isActive = value; } | 161 | set: function(value) { this._isActive = value; } |
162 | }, | 162 | }, |
163 | 163 | ||
164 | dirtyFlag: { | 164 | needsSave: { |
165 | get: function() { return this._dirtyFlag; }, | 165 | get: function() { return this._needsSave; }, |
166 | set: function(value) { this._dirtyFlag = value; } | 166 | set: function(value) { this._needsSave = value } |
167 | }, | 167 | }, |
168 | 168 | ||
169 | callback: { | 169 | callback: { |
@@ -192,17 +192,5 @@ var TextDocument = exports.TextDocument = Montage.create(Component, { | |||
192 | value: function() { | 192 | value: function() { |
193 | // Have the XHR here? | 193 | // Have the XHR here? |
194 | } | 194 | } |
195 | }, | ||
196 | |||
197 | markEdited:{ | ||
198 | value: function() { | ||
199 | this.dirtyFlag = true; | ||
200 | } | ||
201 | }, | ||
202 | |||
203 | markUnedited:{ | ||
204 | value: function() { | ||
205 | this.dirtyFlag = false; | ||
206 | } | ||
207 | } | 195 | } |
208 | }); \ No newline at end of file | 196 | }); \ No newline at end of file |