From b056b4bef5982466d80d72e5cbb31e63087990e1 Mon Sep 17 00:00:00 2001 From: Ananya Sen Date: Fri, 24 Feb 2012 15:30:55 -0800 Subject: - added closeDocument event for timeline - minor bug fixes Signed-off-by: Ananya Sen --- js/stage/layout.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'js/stage') 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, { handleSelectionChange: { value: function(event) { + + if(this.application.ninja.documentController.activeDocument === null){ + return; + } + // Make an array copy of the line node list which is not an array like object this.domTree = Array.prototype.slice.call(this.application.ninja.documentController.activeDocument._liveNodeList, 0); -- cgit v1.2.3