diff options
author | Valerio Virgillito | 2012-05-16 00:54:40 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-16 00:54:40 -0700 |
commit | a9672abd32c2e03b8607c1af4903c90f7ff9531c (patch) | |
tree | 30da60ed624d3d60b09fc04672c502bbed3b11f8 /js/components/layout/document-entry.reel/document-entry.js | |
parent | 6dfe2e62b1d7a71daf097aac3a31213d564e6122 (diff) | |
parent | 2b21e91a3343229bb87179e08be1e532fcf9b8f9 (diff) | |
download | ninja-a9672abd32c2e03b8607c1af4903c90f7ff9531c.tar.gz |
Merge branch 'dom-architecture' of github.com:Motorola-Mobility/ninja-internal into dom-architecture
Diffstat (limited to 'js/components/layout/document-entry.reel/document-entry.js')
-rwxr-xr-x | js/components/layout/document-entry.reel/document-entry.js | 4 |
1 files changed, 1 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 9e4110e2..4d09a362 100755 --- a/js/components/layout/document-entry.reel/document-entry.js +++ b/js/components/layout/document-entry.reel/document-entry.js | |||
@@ -7,8 +7,6 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot | |||
7 | var Montage = require("montage/core/core").Montage; | 7 | var Montage = require("montage/core/core").Montage; |
8 | var Component = require("montage/ui/component").Component; | 8 | var Component = require("montage/ui/component").Component; |
9 | 9 | ||
10 | //var documentManagerModule = ("js/document/documentManager"); | ||
11 | |||
12 | exports.DocumentEntry = Montage.create(Component, { | 10 | exports.DocumentEntry = Montage.create(Component, { |
13 | 11 | ||
14 | dirty: { value: null }, | 12 | dirty: { value: null }, |
@@ -119,7 +117,7 @@ exports.DocumentEntry = Montage.create(Component, { | |||
119 | handleClick: { | 117 | handleClick: { |
120 | value: function(event) { | 118 | value: function(event) { |
121 | if(event._event.target.nodeName === "IMG") { | 119 | if(event._event.target.nodeName === "IMG") { |
122 | this.application.ninja.documentController.closeDocument(this._uuid); | 120 | this.application.ninja.documentController.closeFile(this.application.ninja.documentController._findDocumentByUUID(this._uuid)); |
123 | } else { | 121 | } else { |
124 | if(!this._document.isActive) { | 122 | if(!this._document.isActive) { |
125 | 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)); |