diff options
Diffstat (limited to 'js/components/layout/document-entry.reel')
-rwxr-xr-x | js/components/layout/document-entry.reel/document-entry.js | 11 |
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 | ||
10 | exports.DocumentEntry = Montage.create(Component, { | 10 | exports.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 | ||