ember-reactive-helpers
Advanced tools
Comparing version 0.3.5 to 0.3.6
{ | ||
"name": "ember-reactive-helpers", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "Collection of helpers to aid in reactive template programming with Ember.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
@@ -91,2 +91,19 @@ # ember-reactive-helpers | ||
### `(throttle action wait [immidiate])` | ||
`(throttle)` helper will ensure that the action is only triggered once per given wait period. | ||
The action will be triggered at the end of the wait period unless `immidate` is set to true. | ||
```hbs | ||
<button {{action (throttle (action 'increment') 100)}}>+1</button> | ||
``` | ||
### `(debounce action wait [immidiate])` | ||
`(debounce)` helper waits for specified time to pass before triggering callback. All intemidiate events are discarded. | ||
```hbs | ||
<button {{action (debounce (pipe (r 'add' 1) (action (mut count)) ) 100) count}}>+1</button> | ||
``` | ||
## Installation | ||
@@ -93,0 +110,0 @@ |
12423
29
170
124