aboutsummaryrefslogtreecommitdiff
path: root/js/ninja.reel/ninja.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-30 01:33:20 -0700
committerValerio Virgillito2012-05-30 01:33:20 -0700
commit31b094ee21102f99a4021d505bc3a28527c9e23d (patch)
treea9525ea312f8cc0d25ab6410394f01e974b69068 /js/ninja.reel/ninja.js
parentd8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff)
downloadninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/ninja.reel/ninja.js')
-rwxr-xr-xjs/ninja.reel/ninja.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/ninja.reel/ninja.js b/js/ninja.reel/ninja.js
index 3659f1f8..987c32fd 100755
--- a/js/ninja.reel/ninja.js
+++ b/js/ninja.reel/ninja.js
@@ -322,6 +322,14 @@ exports.Ninja = Montage.create(Component, {
322 } 322 }
323 }, 323 },
324 324
325 closeFile: {
326 value: function(document) {
327 var doc = this.documentList.content[this.documentList.content.indexOf(document)];
328
329 this.documentList.removeObjects(doc);
330 }
331 },
332
325 handleOnSwitchDocument: { 333 handleOnSwitchDocument: {
326 value: function() { 334 value: function() {
327 this.currentDocument = this.documentController.activeDocument; 335 this.currentDocument = this.documentController.activeDocument;