diff options
author | Valerio Virgillito | 2012-05-15 23:34:52 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-15 23:34:52 -0700 |
commit | 2b21e91a3343229bb87179e08be1e532fcf9b8f9 (patch) | |
tree | 5ae1e660d0e307fda84c3be6a66c243904d75225 /js/components | |
parent | 012a6e8fa8bfb56e1a50f3b2fc6058f3651701a2 (diff) | |
parent | 9db5c446337e266fd604eac79ec39c840ffebbbe (diff) | |
download | ninja-2b21e91a3343229bb87179e08be1e532fcf9b8f9.tar.gz |
Merge pull request #237 from mencio/dom-architecture
Dom architecture - Fixed closing and opening a document
Diffstat (limited to 'js/components')
-rwxr-xr-x | js/components/layout/document-entry.reel/document-entry.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/components/layout/document-entry.reel/document-entry.js b/js/components/layout/document-entry.reel/document-entry.js index 81a63c90..4d09a362 100755 --- a/js/components/layout/document-entry.reel/document-entry.js +++ b/js/components/layout/document-entry.reel/document-entry.js | |||
@@ -117,7 +117,7 @@ exports.DocumentEntry = Montage.create(Component, { | |||
117 | handleClick: { | 117 | handleClick: { |
118 | value: function(event) { | 118 | value: function(event) { |
119 | if(event._event.target.nodeName === "IMG") { | 119 | if(event._event.target.nodeName === "IMG") { |
120 | this.application.ninja.documentController.closeDocument(this._uuid); | 120 | this.application.ninja.documentController.closeFile(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |
121 | } else { | 121 | } else { |
122 | if(!this._document.isActive) { | 122 | if(!this._document.isActive) { |
123 | this.application.ninja.stage.stageView.switchDocument(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); | 123 | this.application.ninja.stage.stageView.switchDocument(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |