GitXplorerGitXplorer
b

ember-observer-macros

public
7 stars
1 forks
1 issues

Commits

List of commits on branch master.
Verified
bad914aa4a6b2cddfd240cd7ddb8c4407e2498c5

Update README.md

bbekzod committed 7 years ago
Verified
694846443e9247dd3f2aff4dd044df4f4a93846e

Update README.md

bbekzod committed 7 years ago
Unverified
99e0d60283eb359a3f1210126a56c0ac7135a625

Merge branch 'release/0.0.1'

bbekzod committed 7 years ago
Unverified
1daf718220796d2300c55c671372adc4d173df7f

release: `0.0.1`

bbekzod committed 7 years ago
Unverified
7d888e26a903a5d583bd45edb98fd7fe2f3440bd

Merge branch 'master' of https://github.com/bekzod/ember-observer-macros

bbekzod committed 7 years ago
Unverified
ffa19e8ff42215c6510354d9cf8b9ed622ae97ed

fix: correct tests

bbekzod committed 7 years ago

README

The README file for this repository.

ember-observer-macros Ember Observer Score npm version travis status

Adds few observer macros to avoid calling observer function too often

Importing/ Usage

import { observerOnce, observerDebounce, observerThrottle } from 'ember-observer-macros';

observerOnce

Calls observer function once in run loop

nameChanged: observerOnce('propName1', 'propName2', function() {})

observerDebounce

Debounces observer function

nameChanged: observerDebounce('propName1', 'propName2', function() {}, 200)

observerThrottle

Throttles observer function

nameChanged: observerThrottle('propName1', 'propName2', function() {}, 200)

Installation

  • ember install ember-observer-macros