aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-02-13 17:06:30 -0800
committerJose Antonio Marquez2012-02-13 17:06:30 -0800
commitc8712e6bc9b5b63fbfca08a0989ea05948f2f4a4 (patch)
tree2d1b1a50f3b159852983e853e0b5479af87fdf95 /js/controllers
parent79f7727ed077d054d791337d822c8e2259925084 (diff)
downloadninja-c8712e6bc9b5b63fbfca08a0989ea05948f2f4a4.tar.gz
Fixing multiple tabs
Fixed broken code to allow for multiple tabs to open.
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js2
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;