From d8840eda0d3b3e31fb5a72306fe66608f4f99c2b Mon Sep 17 00:00:00 2001 From: Valerio Virgillito Date: Tue, 29 May 2012 23:52:59 -0700 Subject: fixing the menu bindings and some cleanup of the stage Signed-off-by: Valerio Virgillito --- js/components/menu/menu.reel/menu.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'js/components/menu/menu.reel/menu.js') 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, exports.Menu = Montage.create(Component, { + _currentDocument: { + value : null + }, + + currentDocument : { + get : function() { + return this._currentDocument; + }, + set : function(value) { + if (value === this._currentDocument) { + return; + } + + this._currentDocument = value; + } + }, + _active: { value: false }, -- cgit v1.2.3