diff options
Diffstat (limited to 'js/io/document/text-document.js')
-rwxr-xr-x[-rw-r--r--] | js/io/document/text-document.js | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/js/io/document/text-document.js b/js/io/document/text-document.js index 3506891a..599d311c 100644..100755 --- a/js/io/document/text-document.js +++ b/js/io/document/text-document.js | |||
@@ -17,16 +17,8 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base | |||
17 | } | 17 | } |
18 | }, | 18 | }, |
19 | 19 | ||
20 | _textArea: { value: null, enumerable: false }, | ||
21 | |||
22 | // Temporary Save the source | ||
23 | _source: { value: null, enumerable: false}, | 20 | _source: { value: null, enumerable: false}, |
24 | 21 | ||
25 | textArea: { | ||
26 | get: function() { return this._textArea;}, | ||
27 | set: function(value) { this._textArea = value; } | ||
28 | }, | ||
29 | |||
30 | source: { | 22 | source: { |
31 | get: function() { return this._source;}, | 23 | get: function() { return this._source;}, |
32 | set: function(value) { this._source = value;} | 24 | set: function(value) { this._source = value;} |
@@ -53,10 +45,11 @@ var TextDocument = exports.TextDocument = Montage.create(baseDocumentModule.Base | |||
53 | // PUBLIC METHODS | 45 | // PUBLIC METHODS |
54 | initialize: { | 46 | initialize: { |
55 | value: function(doc, uuid, textArea, callback) { | 47 | value: function(doc, uuid, textArea, callback) { |
56 | this.init(doc.name, doc.uri, doc.type, textArea, uuid, callback); | 48 | this.init(doc.name, doc.uri, doc.type, textArea, uuid); |
57 | this.textArea = textArea.firstChild; | 49 | |
58 | this.currentView = "code"; | 50 | this.currentView = "code"; |
59 | this._loadContent(); | 51 | this.textArea = textArea; |
52 | // this._loadContent(); | ||
60 | } | 53 | } |
61 | }, | 54 | }, |
62 | 55 | ||