diff options
author | Ananya Sen | 2012-05-20 15:16:06 -0700 |
---|---|---|
committer | Ananya Sen | 2012-05-20 15:16:06 -0700 |
commit | c3c2ffc8d057660b7c42b45442885cd0d2d598bc (patch) | |
tree | a7696419538abda2a7534c33f7200c4e3c3eae5d /js/document/document-text.js | |
parent | 6f5ffa17c72dd0aef7a02e3496154514750143c2 (diff) | |
download | ninja-c3c2ffc8d057660b7c42b45442885cd0d2d598bc.tar.gz |
use documents parent container property
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/document/document-text.js')
-rwxr-xr-x | js/document/document-text.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/js/document/document-text.js b/js/document/document-text.js index 09525f4e..bb63f5f8 100755 --- a/js/document/document-text.js +++ b/js/document/document-text.js | |||
@@ -31,7 +31,6 @@ exports.TextDocument = Montage.create(Component, { | |||
31 | enumerable: false, | 31 | enumerable: false, |
32 | value : function(file, context, callback, view){ | 32 | value : function(file, context, callback, view){ |
33 | var codeDocumentView = CodeDocumentView.create(), container = null; | 33 | var codeDocumentView = CodeDocumentView.create(), container = null; |
34 | codeDocumentView.initialize(); | ||
35 | 34 | ||
36 | //Creating instance of Text Document Model | 35 | //Creating instance of Text Document Model |
37 | this.model = Montage.create(TextDocumentModel,{ | 36 | this.model = Montage.create(TextDocumentModel,{ |
@@ -40,6 +39,8 @@ exports.TextDocument = Montage.create(Component, { | |||
40 | views: {value: {'code': codeDocumentView, 'design': null}} | 39 | views: {value: {'code': codeDocumentView, 'design': null}} |
41 | }); | 40 | }); |
42 | 41 | ||
42 | codeDocumentView.initialize(this.model.parentContainer); | ||
43 | |||
43 | codeDocumentView.textArea.value = file.content; | 44 | codeDocumentView.textArea.value = file.content; |
44 | codeDocumentView.initializeTextView(file, this); | 45 | codeDocumentView.initializeTextView(file, this); |
45 | 46 | ||