aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-03-22 09:57:32 -0700
committerJose Antonio Marquez2012-03-22 09:57:32 -0700
commitefcec76362a652033254fc6465dd127e8bebc04c (patch)
tree64e25dab08ac50c0fec62111b3112b13ba1f4f7f /js/controllers
parent24699c72a0efc1788bb26e0988a31fb0002f560c (diff)
downloadninja-efcec76362a652033254fc6465dd127e8bebc04c.tar.gz
Adding firstDraw event to components added
This will allow us to re-parse the document for styles added dynamically.
Diffstat (limited to 'js/controllers')
-rwxr-xr-xjs/controllers/document-controller.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/js/controllers/document-controller.js b/js/controllers/document-controller.js
index 3db4c7d4..c6f867aa 100755
--- a/js/controllers/document-controller.js
+++ b/js/controllers/document-controller.js
@@ -64,10 +64,16 @@ var DocumentController = exports.DocumentController = Montage.create(Component,
64 64
65 this.eventManager.addEventListener("styleSheetDirty", this, false); 65 this.eventManager.addEventListener("styleSheetDirty", this, false);
66 66
67 this.eventManager.addEventListener("addComponentFirstDraw", this, false);
67 } 68 }
68 }, 69 },
69 70
70 71 handleAddComponentFirstDraw: {
72 value: function (e) {
73 //TODO: Add logic to reparse the document for dynamically added styles
74 console.log(e);
75 }
76 },
71 77
72 78
73 79