aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/text-document.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-01-27 12:05:17 -0800
committerJose Antonio Marquez2012-01-27 12:05:17 -0800
commit3a754133dbc138390503341fd2e9beba3e43aa4b (patch)
treecdeae7d7dd9a30d7b4fab5afb7efad68d4ec7508 /js/io/document/text-document.js
parentb89a7ee8b956c96a1dcee995ea840feddc5d4b27 (diff)
downloadninja-3a754133dbc138390503341fd2e9beba3e43aa4b.tar.gz
Merged old FileIO
Diffstat (limited to 'js/io/document/text-document.js')
-rwxr-xr-x[-rw-r--r--]js/io/document/text-document.js15
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