diff options
author | Valerio Virgillito | 2012-07-31 15:18:51 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-07-31 15:18:51 -0700 |
commit | 4343e1f92547df9f7d42eecdf7e4feb47ad960e8 (patch) | |
tree | 27913b22fc5a899ae679013427d3cfe4b497837a /js/document/document-text.js | |
parent | d68ad5c4aa404f66303833367700983b8d7f5303 (diff) | |
parent | b391dde5f319bf4c534e9fce523c22be3bb16ace (diff) | |
download | ninja-4343e1f92547df9f7d42eecdf7e4feb47ad960e8.tar.gz |
Merge pull request #422 from joseeight/Document
Document Code View
Diffstat (limited to 'js/document/document-text.js')
-rwxr-xr-x | js/document/document-text.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/document/document-text.js b/js/document/document-text.js index 1fe43494..d06bdefb 100755 --- a/js/document/document-text.js +++ b/js/document/document-text.js | |||
@@ -51,13 +51,13 @@ exports.TextDocument = Montage.create(Component, { | |||
51 | //////////////////////////////////////////////////////////////////// | 51 | //////////////////////////////////////////////////////////////////// |
52 | // | 52 | // |
53 | init:{ | 53 | init:{ |
54 | value: function(file, context, callback, view){ | 54 | value: function(file, context, callback, view, parentContainer){ |
55 | // | 55 | // |
56 | var codeDocumentView = CodeDocumentView.create(), container = null; //TODO: Why is this initilzied to null? | 56 | var codeDocumentView = CodeDocumentView.create(), container = null; //TODO: Why is this initilzied to null? |
57 | //Creating instance of Text Document Model | 57 | //Creating instance of Text Document Model |
58 | this.model = Montage.create(TextDocumentModel,{ | 58 | this.model = Montage.create(TextDocumentModel,{ |
59 | file: {value: file}, | 59 | file: {value: file}, |
60 | parentContainer: {value: document.getElementById("codeViewContainer")}, //TODO: Remove reference to this element, should be dynamic | 60 | parentContainer: {value: parentContainer}, //TODO: Remove reference to this element, should be dynamic |
61 | views: {value: {'code': codeDocumentView, 'design': null}} //TODO: Add check if file might have design view, if so, then create it | 61 | views: {value: {'code': codeDocumentView, 'design': null}} //TODO: Add check if file might have design view, if so, then create it |
62 | }); | 62 | }); |
63 | //TODO: Add design view logic | 63 | //TODO: Add design view logic |