lib/action/main.js
function(title, menu) {
			return utils.find(menu || this.getMenu(), function(val) {
				if (val.type == 'action') {
					if (val.label == title || val.name == title) {
						return val.name;
					}
				} else {
					return this.getActionNameForMenuTitle(title, val.items);
				}
			}, this);
		}
function(title, menu) {
			return utils.find(menu || this.getMenu(), function(val) {
				if (val.type == 'action') {
					if (val.label == title || val.name == title) {
						return val.name;
					}
				} else {
					return this.getActionNameForMenuTitle(title, val.items);
				}
			}, this);
		}
function ( title , menu ) { return utils . find ( menu || this . getMenu ( ) , function ( val ) { if ( val . type == 'action' ) { if ( val . label == title || val . name == title ) { return val . name ; } } else { return this . getActionNameForMenuTitle ( title , val . items ) ; } } , this ) ; }
Returns action name associated with menu item title
@param {String} title
@returns {String}
Returns action name associated with menu item title