<commit_before>Class Mif.Menu {#Mif.Menu}
==========================
Create javascript Menu control.

### Implements:
	Events, Options

Menu Method: constructor {#Mif.Menu:constructor}
------------------------------------------------
	
### Syntax:

	var myMenu = new Mif.Menu(options);

### Arguments:

1. options  - (*object*) Mif.Menu options.

### Options:

* isSubMenu  - (*boolean*) true if it's subMenu.

### Events:

* toggle(node, state) - Function to execute when expand or collapse node. On expand state=true, on collapse state=false

### Properties:

* activeSubMenu - current displayed sub menu.


### Example:

##### javascript
	var testMenu=new Mif.Menu({
		types:{
			nodeType:{
				openIcon: 'node-open-icon',//node-open-icon - css class for open icon.
				closeIcon: 'node-close-icon'
			}
		},
		dfltType: 'nodeType'
	});
	testMenu.load({
		[
			{
				property: {name: 'root'},
				children:[
					{
						property:{name:'node1'}
					},
					{
						property:{name:'node2'},
						children:[
							{property:{name:'node2.1'}}
						]
					}
				]
			}
		]
	});
	testMenu.addEvent('onToggle',function(node, state){
		alert('Node '+node.name+(state ? 'expanded' : 'collapsed'));
	});
	

##### resulting Menu:

    root
	 |_
	   |-node1
	   |-node2
	      |-node2.1




	
Mif.Menu Method: scrollTo {#Mif.Menu:scrollTo}
----------------------------------------------

Scrolls the node into view.

### Syntax: 
	
	myMenu.scrollTo(someNode);

### Arguments:

1. node - (*Mif.Menu.Node*) node which will scrolled into view.

### Note: 
	This function used in Mif.Menu.Drag and Mif.Menu.Transform.<commit_msg>fix docs<commit_after>Class Mif.Menu {#Mif.Menu}
==========================
Create javascript Menu control.

### Implements:
	Events, Options

Menu Method: constructor {#Mif.Menu:constructor}
------------------------------------------------
	
### Syntax:

	var myMenu = new Mif.Menu(options);

### Arguments:

1. options  - (*object*) Mif.Menu options
{'fraction_non_alphanumeric': 0.2434077079107505, 'fraction_numerical': 0.005578093306288032, 'mean_word_length': 2.467486818980668, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5408702', 'n_tokens_mistral': 730, 'n_tokens_neox': 614, 'n_words': 148}