Adopt panel system in match spec
Change-Id: I068c9f3ece057ce7eb782575fc5233d00985c02c
diff --git a/dev/js/src/buttongroup/menu.js b/dev/js/src/buttongroup/menu.js
index 4615564..bebaac4 100644
--- a/dev/js/src/buttongroup/menu.js
+++ b/dev/js/src/buttongroup/menu.js
@@ -8,10 +8,10 @@
/**
* Create new menu object.
- * Pass the match information object
+ * Pass the panel object
* and the item parameters.
*
- * @param info The match info object
+ * @param panel The panel object
* @param params The match menu items
* as an array of arrays.
*/
@@ -37,15 +37,13 @@
},
/**
- * The match information object of the menu.
- * TODO:
- * Rename to 'Panel'
+ * The panel object of the menu.
*/
- info :function (infoVar) {
- if (infoVar !== undefined)
- this._info = infoVar;
+ panel :function (panelVar) {
+ if (panelVar !== undefined)
+ this._panel = panelVar;
- return this._info;
+ return this._panel;
},
// Attach menu to button