aboutsummaryrefslogtreecommitdiff
path: root/js/io/document/text-document.js
diff options
context:
space:
mode:
authorAnanya Sen2012-02-02 03:30:54 -0800
committerAnanya Sen2012-02-02 03:30:54 -0800
commit87e247e74040b5e80ff40003d233d5317881102a (patch)
tree42bbe42d1af84ac35c792d720645f0a00ae6aa53 /js/io/document/text-document.js
parent8504b61aefb25fdab931f02c4568916d2bf8345c (diff)
downloadninja-87e247e74040b5e80ff40003d233d5317881102a.tar.gz
fixed code view container, and switching code view
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/io/document/text-document.js')
-rwxr-xr-xjs/io/document/text-document.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/js/io/document/text-document.js b/js/io/document/text-document.js
index a9081cb5..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,8 +50,8 @@ 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, null, doc.externalUri); 54 this.init(doc.name, doc.uri, doc.type, container, uuid);
49 this.currentView = "code"; 55 this.currentView = "code";
50 this.textArea = textArea; 56 this.textArea = textArea;
51 57