diff options
Diffstat (limited to 'js/components/layout')
-rwxr-xr-x | js/components/layout/document-entry.reel/document-entry.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/components/layout/document-entry.reel/document-entry.js b/js/components/layout/document-entry.reel/document-entry.js index 6f265c91..1431e76f 100755 --- a/js/components/layout/document-entry.reel/document-entry.js +++ b/js/components/layout/document-entry.reel/document-entry.js | |||
@@ -81,7 +81,7 @@ exports.DocumentEntry = Montage.create(Component, { | |||
81 | prepareForDraw: { | 81 | prepareForDraw: { |
82 | enumerable: false, | 82 | enumerable: false, |
83 | value: function() { | 83 | value: function() { |
84 | //this.element.addEventListener("click", this, false); | 84 | this.element.addEventListener("click", this, false); |
85 | } | 85 | } |
86 | }, | 86 | }, |
87 | 87 | ||
@@ -98,10 +98,10 @@ exports.DocumentEntry = Montage.create(Component, { | |||
98 | handleClick: { | 98 | handleClick: { |
99 | value: function(event) { | 99 | value: function(event) { |
100 | if(event._event.target.nodeName === "IMG") { | 100 | if(event._event.target.nodeName === "IMG") { |
101 | documentManagerModule.DocumentManager.closeDocument(this._uuid); | 101 | this.application.ninja.documentController.closeDocument(this._uuid); |
102 | } else { | 102 | } else { |
103 | if(!this._document.isActive) { | 103 | if(!this._document.isActive) { |
104 | documentManagerModule.DocumentManager.switchDocument(this._uuid); | 104 | this.application.ninja.stage.stageView.switchCodeView(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |
105 | } | 105 | } |
106 | } | 106 | } |
107 | } | 107 | } |