aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorValerio Virgillito2012-05-03 15:15:21 -0700
committerValerio Virgillito2012-05-03 15:15:21 -0700
commit2078bfa96afaef40acb4edac99848ba55e808ef1 (patch)
tree64e1443e15fa917e46a00bcea1dfaa5c5e982c93 /js/stage
parent50831b3cdd905b372d405880e0c64f01c234f09e (diff)
downloadninja-2078bfa96afaef40acb4edac99848ba55e808ef1.tar.gz
Refactor creating elements. Removed makeNJElement and separated the model creation
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/stage.reel/stage.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index a7c22a7f..b181dc70 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -855,6 +855,12 @@ exports.Stage = Montage.create(Component, {
855 } 855 }
856 }, 856 },
857 857
858 setStageAsViewport: {
859 value: function() {
860 this.stageDeps.viewUtils.setViewportObj(this.application.ninja.currentDocument.documentRoot);
861 }
862 },
863
858 setZoom: { 864 setZoom: {
859 value: function(value) { 865 value: function(value) {
860 if(!this._firstDraw) 866 if(!this._firstDraw)