diff options
author | Valerio Virgillito | 2012-06-07 10:51:26 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-07 10:51:26 -0700 |
commit | b75fe9369f7caec0351d298f7106c8d59572b440 (patch) | |
tree | 8f2f2db6097104e44c8d87e11466d1f3124c7f3a /js/data | |
parent | 47e0e1f047e83b71c3f86812a45d33904201cc7a (diff) | |
parent | 6442dcc0cc4088d28558a9c121c6a91cba3ff078 (diff) | |
download | ninja-b75fe9369f7caec0351d298f7106c8d59572b440.tar.gz |
Merge pull request #275 from mencio/element-model-fixes
Element model fixes and selection fixes
Diffstat (limited to 'js/data')
-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 | }, |