<commit_before># fruitmachine-domdelegate

A [dom-delegate](http://github.com/ftlabs/dom-delegate) [FruitMachine](http://github.com/ftlabs/fruitmachine) helper.

This helper:
- **Instantiates** the dom-delegate when a fruitmachine module is instantiated;
- **Binds** that dom-delegate to the module's [el](https://github.com/ftlabs/fruitmachine/blob/master/docs/module-el.md) when the fruitmachine module is setup;
- **Unbinds** the dom-delegate instance from the el when the fruitmachine module fires its teardown event;
- And **destroy** the dom-delegate when the fruitmachine object is destroyed.

## Usage example

```javascript
var Apple = fruitmachine.define({
  name: 'apple',<commit_msg>The El.<commit_after># fruitmachine-domdelegate

A [dom-delegate](http://github.com/ftlabs/dom-delegate) [FruitMachine](http://github.com/ftlabs/fruitmachine) helper.

This helper:
- **Instantiates** the dom-delegate when a fruitmachine module is instantiated;
- **Binds** that dom-delegate to the module's *[El](https://github.com/ftlabs/fruitmachine/blob/master/docs/module-el.md)* when the fruitmachine module is setup;
- **Unbinds** the dom-delegate instance from the *El* when the fruitmachine module fires its teardown event;
- And **destroy** the dom-delegate when the fruitmachine object is destroyed.

## Usage example

```javascript
var Apple = fruitmachine.define({
  name: 'apple',
{'fraction_non_alphanumeric': 0.12896253602305474, 'fraction_numerical': 0.0, 'mean_word_length': 5.285067873303167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '276340', 'n_tokens_mistral': 421, 'n_tokens_neox': 405, 'n_words': 126}