Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-reactive-helpers

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-reactive-helpers - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

addon/helpers/debounce.js

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc