aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnanya Sen2012-02-29 12:18:09 -0800
committerAnanya Sen2012-02-29 12:18:09 -0800
commit4e21db069b28c79236c8c7fd19dcc7810d28c5cb (patch)
tree34921eaf1e7ea33c8bfc4a14e874fc1e5e50f7d4
parent03ea76700cb8bee3f4f58acf3e3503b0642d13fb (diff)
downloadninja-4e21db069b28c79236c8c7fd19dcc7810d28c5cb.tar.gz
set selectionContainer before restoring selected elements
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
-rwxr-xr-xjs/document/html-document.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/document/html-document.js b/js/document/html-document.js
index 9e3f0cdd..9dcea8cb 100755
--- a/js/document/html-document.js
+++ b/js/document/html-document.js
@@ -726,6 +726,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
726 this.application.ninja.stage._scrollLeft = this.savedTopScroll; 726 this.application.ninja.stage._scrollLeft = this.savedTopScroll;
727 } 727 }
728 728
729 this.application.ninja.currentSelectedContainer = this.documentRoot;
729 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){ 730 if((typeof this.selectionModel !== 'undefined') && (this.selectionModel !== null)){
730 this.application.ninja.selectedElements = this.selectionModel.slice(0); 731 this.application.ninja.selectedElements = this.selectionModel.slice(0);
731 } 732 }
@@ -735,7 +736,7 @@ exports.HTMLDocument = Montage.create(TextDocument, {
735 this.application.ninja.undocontroller.undoQueue = this.undoStack.slice(0); 736 this.application.ninja.undocontroller.undoQueue = this.undoStack.slice(0);
736 this.application.ninja.undocontroller.redoQueue = this.redoStack.slice(0); 737 this.application.ninja.undocontroller.redoQueue = this.redoStack.slice(0);
737 738
738 this.application.ninja.currentSelectedContainer = this.documentRoot; 739
739 } 740 }
740 } 741 }
741 //////////////////////////////////////////////////////////////////// 742 ////////////////////////////////////////////////////////////////////