diff options
author | Jose Antonio Marquez | 2012-05-16 11:37:25 -0700 |
---|---|---|
committer | Jose Antonio Marquez | 2012-05-16 11:37:25 -0700 |
commit | 78250b70bdf0089e2b8ac56fb77e2f76ab83f34c (patch) | |
tree | 90f47e970993b659c25ca1ab190f554655b57d32 /js/stage/stage.reel/stage.js | |
parent | 5de553a1b3bdd8783ab6ce017ae70369ad92a890 (diff) | |
parent | 80f2b57b2126bbe90ce6ab3663ac04ffcc40a393 (diff) | |
download | ninja-78250b70bdf0089e2b8ac56fb77e2f76ab83f34c.tar.gz |
Merge branch 'refs/heads/Ninja-DOM-Architecture' into Document
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-x | js/stage/stage.reel/stage.js | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js index deed4112..125155d8 100755 --- a/js/stage/stage.reel/stage.js +++ b/js/stage/stage.reel/stage.js | |||
@@ -164,6 +164,29 @@ exports.Stage = Montage.create(Component, { | |||
164 | set: function(value) { this._userContentBorder = value; } | 164 | set: function(value) { this._userContentBorder = value; } |
165 | }, | 165 | }, |
166 | 166 | ||
167 | _activeDocument : { | ||
168 | value : null, | ||
169 | enumerable : false | ||
170 | }, | ||
171 | |||
172 | activeDocument : { | ||
173 | get : function() { | ||
174 | return this._activeDocument; | ||
175 | }, | ||
176 | set : function(document) { | ||
177 | ///// If the document is null set default stylesheets to null | ||
178 | |||
179 | if(!document) { | ||
180 | return false; | ||
181 | } | ||
182 | |||
183 | ///// setting document via binding | ||
184 | this._activeDocument = document; | ||
185 | |||
186 | }, | ||
187 | enumerable : false | ||
188 | }, | ||
189 | |||
167 | willDraw: { | 190 | willDraw: { |
168 | value: function() { | 191 | value: function() { |
169 | if(this.resizeCanvases) { | 192 | if(this.resizeCanvases) { |