aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/text-document.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/io/document/text-document.js')
-rwxr-xr-xjs/io/document/text-document.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/js/io/document/text-document.js b/js/io/document/text-document.js
index 599d311c..156aaacb 100755
--- a/js/io/document/text-document.js
+++ b/js/io/document/text-document.js
@@ -17,6 +17,8 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base
17 } 17 }
18 }, 18 },
19 19
20 _textArea: {value: null, enumerable: false },
21
20 _source: { value: null, enumerable: false}, 22 _source: { value: null, enumerable: false},
21 23
22 source: { 24 source: {
@@ -31,6 +33,10 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base
31 33
32 34
33 // GETTERS / SETTERS 35 // GETTERS / SETTERS
36 textArea: {
37 get: function() { return this._textArea; },
38 set: function(value) { this._textArea = value; }
39 },
34 editor: { 40 editor: {
35 get: function() { return this._codeEditor.editor; }, 41 get: function() { return this._codeEditor.editor; },
36 set: function(value) { this._codeEditor.editor = value} 42 set: function(value) { this._codeEditor.editor = value}
@@ -44,11 +50,11 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base
44 50
45 // PUBLIC METHODS 51 // PUBLIC METHODS
46 initialize: { 52 initialize: {
47 value: function(doc, uuid, textArea, callback) { 53 value: function(doc, uuid, textArea, container, callback) {
48 this.init(doc.name, doc.uri, doc.type, textArea, uuid); 54 this.init(doc.name, doc.uri, doc.type, container, uuid);
49
50 this.currentView = "code"; 55 this.currentView = "code";
51 this.textArea = textArea; 56 this.textArea = textArea;
57
52// this._loadContent(); 58// this._loadContent();
53 } 59 }
54 }, 60 },