diff options
author | Jose Antonio Marquez Russo | 2012-02-09 21:37:09 -0800 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-02-09 21:37:09 -0800 |
commit | ad9b4d6c90c3a85a3687018f5ee135eea292bc2f (patch) | |
tree | 31484876c697b8eeef56dd83934651fae91c17f5 /js/panels/properties/content.reel/content.js | |
parent | 67a5b6a1fb352bdc69ff05297268c27e7e2ba795 (diff) | |
parent | 26bfb7a4cbf66c35e23eec46def045bd295be2e1 (diff) | |
download | ninja-ad9b4d6c90c3a85a3687018f5ee135eea292bc2f.tar.gz |
Merge pull request #5 from mencio/file-io
FileIO - Disable auto opening a file
Diffstat (limited to 'js/panels/properties/content.reel/content.js')
-rwxr-xr-x | js/panels/properties/content.reel/content.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/js/panels/properties/content.reel/content.js b/js/panels/properties/content.reel/content.js index 0088447a..51b776f1 100755 --- a/js/panels/properties/content.reel/content.js +++ b/js/panels/properties/content.reel/content.js | |||
@@ -54,8 +54,17 @@ exports.Content = Montage.create(Component, { | |||
54 | this.eventManager.addEventListener( "elementChanging", this, false); | 54 | this.eventManager.addEventListener( "elementChanging", this, false); |
55 | } | 55 | } |
56 | 56 | ||
57 | this.eventManager.addEventListener("openDocument", this, false); | ||
58 | } | ||
59 | }, | ||
60 | |||
61 | // Document is opened - Display the current selection | ||
62 | handleOpenDocument: { | ||
63 | value: function() { | ||
64 | |||
57 | this.eventManager.addEventListener( "elementChange", this, false); | 65 | this.eventManager.addEventListener( "elementChange", this, false); |
58 | 66 | ||
67 | // For now always assume that the stage is selected by default | ||
59 | if(this.application.ninja.selectedElements.length === 0) { | 68 | if(this.application.ninja.selectedElements.length === 0) { |
60 | this.displayStageProperties(); | 69 | this.displayStageProperties(); |
61 | } | 70 | } |