Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add promise gesture #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add promise gesture #16

wants to merge 2 commits into from

Commits on Nov 20, 2015

  1. Add promise gesture

    Suppose that the "func" has inside it a promise.
    Like this example: 
    
    var debounceUpdateEntity = debounce(function(entity) {
    		$http.put('/resource/entity/entity.id, entity, {
    
    		}).then(function(response) {
    			entity.version = response.data.version;
    		}, function() {
    
    		})['finally'](function() {
    			debounceUpdateEntity.endPromise();
    		});
    	}, waitDebouceTime, false, true, true);
    
    I would that until the promise not have finish his work, the debounce func was not called
    
    For you this is correct?
    szaccaria committed Nov 20, 2015
    Configuration menu
    Copy the full SHA
    db6ed15 View commit details
    Browse the repository at this point in the history
  2. Update angular-debounce.js

    szaccaria committed Nov 20, 2015
    Configuration menu
    Copy the full SHA
    29c26b3 View commit details
    Browse the repository at this point in the history