From e5e8412c3a010e58fbd7d3efa236007341914115 Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Thu, 1 Aug 2013 10:33:35 +0000 Subject: [PATCH] main menu: add public isSelected method --- source/Ox.UI/js/Menu/MainMenu.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Ox.UI/js/Menu/MainMenu.js b/source/Ox.UI/js/Menu/MainMenu.js index 8b6c9895..dbdd2e1c 100644 --- a/source/Ox.UI/js/Menu/MainMenu.js +++ b/source/Ox.UI/js/Menu/MainMenu.js @@ -209,6 +209,10 @@ Ox.MainMenu = function(options, self) { }, 500); }; + that.isSelected = function() { + return self.selected > -1; + }; + that.removeMenu = function() { };