aboutsummaryrefslogtreecommitdiff
path: root/js/components/layout/bread-crumb.reel/bread-crumb.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-13 09:23:51 -0700
committerNivesh Rajbhandari2012-03-13 09:23:51 -0700
commit970c2e63aa8ec3f70df2bf073cedb9e3b7617755 (patch)
tree73454125161118363e4de8f25bbc638d997dbd82 /js/components/layout/bread-crumb.reel/bread-crumb.js
parent2ac9a855724cc4ccf147ce4130a733a84cc647c3 (diff)
parentc24f58c10231c30d3a8a4c9fb9a4f395dd746180 (diff)
downloadninja-970c2e63aa8ec3f70df2bf073cedb9e3b7617755.tar.gz
Merge branch 'refs/heads/ninja-internal' into WebGLFixes
Diffstat (limited to 'js/components/layout/bread-crumb.reel/bread-crumb.js')
-rwxr-xr-xjs/components/layout/bread-crumb.reel/bread-crumb.js20
1 files changed, 20 insertions, 0 deletions
diff --git a/js/components/layout/bread-crumb.reel/bread-crumb.js b/js/components/layout/bread-crumb.reel/bread-crumb.js
index b2fa42b1..ab390fc6 100755
--- a/js/components/layout/bread-crumb.reel/bread-crumb.js
+++ b/js/components/layout/bread-crumb.reel/bread-crumb.js
@@ -9,6 +9,24 @@ var Montage = require("montage/core/core").Montage,
9 9
10exports.Breadcrumb = Montage.create(Component, { 10exports.Breadcrumb = Montage.create(Component, {
11 11
12 disabled: {
13 value: true
14 },
15
16 handleOpenDocument: {
17 value: function(){
18 this.disabled = false;
19 }
20 },
21
22 handleCloseDocument: {
23 value: function(){
24 if(!this.application.ninja.documentController.activeDocument) {
25 this.disabled = true;
26 }
27 }
28 },
29
12 _container:{ 30 _container:{
13 value:null 31 value:null
14 }, 32 },
@@ -31,6 +49,8 @@ exports.Breadcrumb = Montage.create(Component, {
31 49
32 prepareForDraw: { 50 prepareForDraw: {
33 value: function() { 51 value: function() {
52 this.eventManager.addEventListener("openDocument", this, false);
53 this.eventManager.addEventListener("closeDocument", this, false);
34 this.breadcrumbBt.addEventListener("action", this, false); 54 this.breadcrumbBt.addEventListener("action", this, false);
35 } 55 }
36 }, 56 },