diff options
author | Ananya Sen | 2012-02-24 15:30:55 -0800 |
---|---|---|
committer | Ananya Sen | 2012-02-24 15:30:55 -0800 |
commit | b056b4bef5982466d80d72e5cbb31e63087990e1 (patch) | |
tree | 30f95ff34a3664eed8d036ec57627647c660390a /js/stage | |
parent | 85d59d57ea556b114c5cad9b2ec67ccc27119380 (diff) | |
download | ninja-b056b4bef5982466d80d72e5cbb31e63087990e1.tar.gz |
- added closeDocument event for timeline
- minor bug fixes
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-x | js/stage/layout.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/stage/layout.js b/js/stage/layout.js index a94dd10c..de4c67c1 100755 --- a/js/stage/layout.js +++ b/js/stage/layout.js | |||
@@ -98,6 +98,11 @@ exports.Layout = Montage.create(Component, { | |||
98 | 98 | ||
99 | handleSelectionChange: { | 99 | handleSelectionChange: { |
100 | value: function(event) { | 100 | value: function(event) { |
101 | |||
102 | if(this.application.ninja.documentController.activeDocument === null){ | ||
103 | return; | ||
104 | } | ||
105 | |||
101 | // Make an array copy of the line node list which is not an array like object | 106 | // Make an array copy of the line node list which is not an array like object |
102 | this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0); | 107 | this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0); |
103 | 108 | ||