diff options
author | Armen Kesablyan | 2012-06-11 11:04:29 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-11 11:04:29 -0700 |
commit | 0f040acabfb7a4bf3138debec5aff869487ceb11 (patch) | |
tree | 53eaa8ba54cf23a1c3ea0c8b39377773198c3e19 /js/data/menu-data.js | |
parent | 7d3bdf39e6d1534de1848ca2744aed66dfeb5d2a (diff) | |
parent | 756cbfad2b98b300af8db3793aa21718b88dd950 (diff) | |
download | ninja-0f040acabfb7a4bf3138debec5aff869487ceb11.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal
Diffstat (limited to 'js/data/menu-data.js')
-rwxr-xr-x | js/data/menu-data.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/js/data/menu-data.js b/js/data/menu-data.js index 6c597542..b6350893 100755 --- a/js/data/menu-data.js +++ b/js/data/menu-data.js | |||
@@ -24,9 +24,15 @@ exports.MenuData = Montage.create(Component, { | |||
24 | 24 | ||
25 | this._currentDocument = value; | 25 | this._currentDocument = value; |
26 | 26 | ||
27 | this.documentEnabledIndices.forEach(function(index) { | 27 | if(!this._currentDocument) { |
28 | index.enabled = true; | 28 | this.documentEnabledIndices.forEach(function(index) { |
29 | }); | 29 | index.enabled = false; |
30 | }); | ||
31 | } else { | ||
32 | this.documentEnabledIndices.forEach(function(index) { | ||
33 | index.enabled = true; | ||
34 | }); | ||
35 | } | ||
30 | 36 | ||
31 | } | 37 | } |
32 | }, | 38 | }, |