Cleanup and simplify JS code
Change-Id: I393e22763c1a1d18878026bf459b747b150429fb
diff --git a/dev/js/src/selectMenu/item.js b/dev/js/src/selectMenu/item.js
index 75003b8..3bd1406 100644
--- a/dev/js/src/selectMenu/item.js
+++ b/dev/js/src/selectMenu/item.js
@@ -2,7 +2,6 @@
/**
* Menu item for select menus.
*/
-
return {
/**
@@ -14,6 +13,7 @@
.upgradeTo(this)._init(params);
},
+
/**
* Override click action of the menu item.
*/
@@ -26,6 +26,10 @@
e.halt();
},
+
+ /**
+ * Get title of item.
+ */
title : function () {
return this.content().textContent;
}