aboutsummaryrefslogtreecommitdiff
path: root/js/document/text-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-21 18:04:27 -0800
committerJose Antonio Marquez2012-02-21 18:04:27 -0800
commit25e6a03cf8af4bd0496a8b21c82332d76ddd9fff (patch)
tree9b4ef3a716139d5259261cae97e8603a1d33a91f /js/document/text-document.js
parent20dc41e571ddec6b781653fac43e2ca34026937d (diff)
parent2f24dafec79583547fe663d5a387d8ef15aae3bf (diff)
downloadninja-25e6a03cf8af4bd0496a8b21c82332d76ddd9fff.tar.gz
Merge branch 'refs/heads/NinjaInternal' into Color
Diffstat (limited to 'js/document/text-document.js')
-rwxr-xr-xjs/document/text-document.js31
1 files changed, 16 insertions, 15 deletions
diff --git a/js/document/text-document.js b/js/document/text-document.js
index 6f8efaad..88464d87 100755
--- a/js/document/text-document.js
+++ b/js/document/text-document.js
@@ -6,9 +6,10 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
6 6
7//BaseDocument Object for all files types and base class for HTML documents. 7//BaseDocument Object for all files types and base class for HTML documents.
8 8
9var Montage = require("montage/core/core").Montage; 9var Montage = require("montage/core/core").Montage,
10 Component = require("montage/ui/component").Component;
10 11
11var TextDocument = exports.TextDocument = Montage.create(Montage, { 12var TextDocument = exports.TextDocument = Montage.create(Component, {
12 13
13 14
14 //TODO: Clean up, test 15 //TODO: Clean up, test
@@ -26,7 +27,7 @@ var TextDocument = exports.TextDocument = Montage.create(Montage, {
26 // PRIVATE MEMBERS 27 // PRIVATE MEMBERS
27 _codeEditor: { 28 _codeEditor: {
28 value: { 29 value: {
29 "editor": { value: null, enumerable: false }, 30 "editor": { value: null, enumerable: false }
30 31
31 } 32 }
32 }, 33 },
@@ -119,15 +120,15 @@ var TextDocument = exports.TextDocument = Montage.create(Montage, {
119 120
120 121
121 /** Private Members **/ 122 /** Private Members **/
122 _name: { value: null, enumerable: false }, 123 _name: { value: null, enumerable: false },
123 _uri: { value: null, enumerable: false }, 124 _uri: { value: null, enumerable: false },
124 _documentType: { value: null, enumerable: false }, 125 _documentType: { value: null, enumerable: false },
125 _container: {value: null, enumerable: false }, 126 _container: { value: null, enumerable: false },
126 _uuid: { value: null, enumerable: false }, 127 _uuid: { value: null, enumerable: false },
127 _isActive: { value: true, enumerable: false }, 128 _isActive: { value: true, enumerable: false },
128 _dirtyFlag: { value: false, enumerable: false }, 129 _needsSave: { value: false, enumarable: false },
129 _callback: { value: null, enumerable: false }, 130 _callback: { value: null, enumerable: false },
130 _currentView: { value: null, enumerable: false}, 131 _currentView: { value: null, enumerable: false},
131 132
132 /** Getters/Setters **/ 133 /** Getters/Setters **/
133 name: { 134 name: {
@@ -160,9 +161,9 @@ var TextDocument = exports.TextDocument = Montage.create(Montage, {
160 set: function(value) { this._isActive = value; } 161 set: function(value) { this._isActive = value; }
161 }, 162 },
162 163
163 dirtyFlag: { 164 needsSave: {
164 get: function() { return this._dirtyFlag; }, 165 get: function() { return this._needsSave; },
165 set: function(value) { this._dirtyFlag = value; } 166 set: function(value) { this._needsSave = value }
166 }, 167 },
167 168
168 callback: { 169 callback: {