aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/document-entry.reel/document-entry.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/components/layout/document-entry.reel/document-entry.js
parentd8840eda0d3b3e31fb5a72306fe66608f4f99c2b (diff)
downloadninja-31b094ee21102f99a4021d505bc3a28527c9e23d.tar.gz
Fixing the close document.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/components/layout/document-entry.reel/document-entry.js')
-rwxr-xr-xjs/components/layout/document-entry.reel/document-entry.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/js/components/layout/document-entry.reel/document-entry.js b/js/components/layout/document-entry.reel/document-entry.js
index 34e307cb..94056007 100755
--- a/js/components/layout/document-entry.reel/document-entry.js
+++ b/js/components/layout/document-entry.reel/document-entry.js
@@ -9,10 +9,6 @@ var Component = require("montage/ui/component").Component;
9 9
10exports.DocumentEntry = Montage.create(Component, { 10exports.DocumentEntry = Montage.create(Component, {
11 11
12 _uuid: {
13 value: null
14 },
15
16 _document: { 12 _document: {
17 value: null 13 value: null
18 }, 14 },
@@ -23,16 +19,11 @@ exports.DocumentEntry = Montage.create(Component, {
23 return this._document; 19 return this._document;
24 }, 20 },
25 set: function(value) { 21 set: function(value) {
26
27 if (this._document === value) { 22 if (this._document === value) {
28 return; 23 return;
29 } 24 }
30 25
31 this._document = value; 26 this._document = value;
32
33 if(value) {
34 this._uuid = value.uuid;
35 }
36 } 27 }
37 }, 28 },
38 29
@@ -87,7 +78,7 @@ exports.DocumentEntry = Montage.create(Component, {
87 78
88 handleCloseButtonAction: { 79 handleCloseButtonAction: {
89 value: function() { 80 value: function() {
90 //this.application.ninja.documentController.closeFile(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); 81 this.application.ninja.documentController.closeFile(this.document);
91 } 82 }
92 } 83 }
93 84