diff options
author | Pushkar Joshi | 2012-06-04 10:37:29 -0700 |
---|---|---|
committer | Pushkar Joshi | 2012-06-04 10:37:29 -0700 |
commit | f1d75e5b29661abc4e173adc1f9de2e0cd91df83 (patch) | |
tree | 796931014054ad6b0647854183f632ffd72ed9ee /js/components/menu/menu.reel/menu.js | |
parent | 06b609df1ff7833592faddbd8d7abb5b9f15a74d (diff) | |
parent | c1ec69879028220b0c3f11ad6e24035bf527802c (diff) | |
download | ninja-f1d75e5b29661abc4e173adc1f9de2e0cd91df83.tar.gz |
Merge branch 'master' into pentool
Conflicts:
js/tools/PenTool.js
Diffstat (limited to 'js/components/menu/menu.reel/menu.js')
-rwxr-xr-x | js/components/menu/menu.reel/menu.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/js/components/menu/menu.reel/menu.js b/js/components/menu/menu.reel/menu.js index fb221640..50d3f0bc 100755 --- a/js/components/menu/menu.reel/menu.js +++ b/js/components/menu/menu.reel/menu.js | |||
@@ -9,6 +9,23 @@ var Montage = require("montage/core/core").Montage, | |||
9 | 9 | ||
10 | exports.Menu = Montage.create(Component, { | 10 | exports.Menu = Montage.create(Component, { |
11 | 11 | ||
12 | _currentDocument: { | ||
13 | value : null | ||
14 | }, | ||
15 | |||
16 | currentDocument : { | ||
17 | get : function() { | ||
18 | return this._currentDocument; | ||
19 | }, | ||
20 | set : function(value) { | ||
21 | if (value === this._currentDocument) { | ||
22 | return; | ||
23 | } | ||
24 | |||
25 | this._currentDocument = value; | ||
26 | } | ||
27 | }, | ||
28 | |||
12 | _active: { | 29 | _active: { |
13 | value: false | 30 | value: false |
14 | }, | 31 | }, |