Minor ES6 improvements
Change-Id: Ibf956915d1b7769dc5cc22a870f4484f492da723
diff --git a/dev/js/src/buttongroup.js b/dev/js/src/buttongroup.js
index cb6a95c..6da1cb7 100644
--- a/dev/js/src/buttongroup.js
+++ b/dev/js/src/buttongroup.js
@@ -78,8 +78,8 @@
*
* Returns the list object.
*/
- addList : function (title, classes, itemClass) {
- var list = treeMenuClass.create([], itemClass || defaultItemClass);
+ addList : function (title, classes, itemClass = defaultItemClass) {
+ var list = treeMenuClass.create([], itemClass);
this.add(title, classes, function (e) {
list.show();
list.button(this.button);