<commit_before>﻿RiotBus
============

Simple event bus for riot.js tags

Usage
============

Requires Riot 2.2+

1) Include riotbus.js or riotbus.min.js to your project

2) Add line code to all your tags

```
	this.mixin(RiotBusMixin)
```

OR do it via sharing mixin:

```
	riot.mixin('RiotBusMixin',RiotBusMixin)
```

```
	this.mixin('RiotBusMixin')
```

API
============

To call event for all tags just add

```
	this.bus.trigger('event',{some: "params"})
```

Demo
============

[Demo](http://plnkr.co/edit/xkIKrP9Y4j6TmzeLJSVQ?p=preview)


Warnings
============

Do not trigger bus event in any event handler

<commit_msg>update  Readme (warning)<commit_after>﻿RiotBus
============

Simple event bus for riot.js tags

Usage
============

Requires Riot 2.2+

1) Include riotbus.js or riotbus.min.js to your project

2) Add line code to all your tags

```
	this.mixin(RiotBusMixin)
```

OR do it via sharing mixin:

```
	riot.mixin('RiotBusMixin',RiotBusMixin)
```

```
	this.mixin('RiotBusMixin')
```

API
============

To call event for all tags just add

```
	this.bus.trigger('event',{some: "params"})
```

Demo
============

[Demo](http://plnkr.co/edit/xkIKrP9Y4j6TmzeLJSVQ?p=preview)


Warnings
============

As is
Do not trigger bus event in any event handler


{'fraction_non_alphanumeric': 0.21400472069236823, 'fraction_numerical': 0.011014948859166011, 'mean_word_length': 4.678571428571429, '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': '7071166', 'n_tokens_mistral': 518, 'n_tokens_neox': 479, 'n_words': 122}