diff options
author | Jose Antonio Marquez | 2012-02-13 17:06:30 -0800 |
---|---|---|
committer | Jose Antonio Marquez | 2012-02-13 17:06:30 -0800 |
commit | c8712e6bc9b5b63fbfca08a0989ea05948f2f4a4 (patch) | |
tree | 2d1b1a50f3b159852983e853e0b5479af87fdf95 /js/controllers | |
parent | 79f7727ed077d054d791337d822c8e2259925084 (diff) | |
download | ninja-c8712e6bc9b5b63fbfca08a0989ea05948f2f4a4.tar.gz |
Fixing multiple tabs
Fixed broken code to allow for multiple tabs to open.
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/document-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js index b80dfe56..b066a9c2 100755 --- a/js/controllers/document-controller.js +++ b/js/controllers/document-controller.js | |||
@@ -187,7 +187,7 @@ DocumentController = exports.DocumentController = Montage.create(Component, { | |||
187 | var code = Montage.create(TextDocument, {"source": {value: doc.content}}), docuuid = Uuid.generate(), textArea; | 187 | var code = Montage.create(TextDocument, {"source": {value: doc.content}}), docuuid = Uuid.generate(), textArea; |
188 | textArea = this.application.ninja.stage.stageView.createTextAreaElement(docuuid); | 188 | textArea = this.application.ninja.stage.stageView.createTextAreaElement(docuuid); |
189 | code.initialize(doc, docuuid, textArea, textArea.parentNode); | 189 | code.initialize(doc, docuuid, textArea, textArea.parentNode); |
190 | code.init(doc.name, doc.uri, doc.extension, null, docuuid); | 190 | //code.init(doc.name, doc.uri, doc.extension, null, docuuid); |
191 | code.textArea.value = doc.content; | 191 | code.textArea.value = doc.content; |
192 | this.application.ninja.stage.stageView.createTextView(code); | 192 | this.application.ninja.stage.stageView.createTextView(code); |
193 | break; | 193 | break; |