aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-01 11:15:26 -0700
committerValerio Virgillito2012-06-01 11:15:26 -0700
commit2085c783cf3a75d2b8f0370a6f54f62dd513161c (patch)
tree7774205bea2c125a40d8d9a80aa579656ef76a27 /js/controllers
parent7fcb10270f9e19415f8452c261c2d0c86916a29a (diff)
downloadninja-2085c783cf3a75d2b8f0370a6f54f62dd513161c.tar.gz
fixing the document closing when the first document is closed.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/styles-controller.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index 86df82de..8d56370d 100755
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -48,25 +48,6 @@ var stylesController = exports.StylesController = Montage.create(Component, {
48 ///// bind the document to prop w/ setter. The setter calls to find 48 ///// bind the document to prop w/ setter. The setter calls to find
49 ///// the stage and default css files. 49 ///// the stage and default css files.
50 50
51 handleAppLoaded : {
52 value: function() {
53 ///// Bind app's currentDocument property to
54 ///// styles controller's _currentDocument property
55
56// Object.defineBinding(this, "currentDocument", {
57// boundObject: this.application.ninja,
58// boundObjectPropertyPath: "currentDocument",
59// oneway: true
60// });
61 }
62 },
63
64 deserializedFromTemplate : {
65 value: function() {
66 this.eventManager.addEventListener( "appLoaded", this, false);
67 },
68 enumerable : false
69 },
70 ///// Active document gets automatically set when the 51 ///// Active document gets automatically set when the
71 ///// document controller changes it 52 ///// document controller changes it
72 _currentDocument : { 53 _currentDocument : {