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 user specific parameter, used in callback #44

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

Conversation

neophob
Copy link

@neophob neophob commented Apr 10, 2015

Hi Ryan

Thanks for your library. I needed to add a custom parameter to each directive call. Example:

<div hm-payload="CUSTOM PARAMETER" hm-press="onHammer" hm-pressup="onHammer" hm-recognizer-options='{"preventGhosts":true,"time":500}'></div>

then the scope function looks like this:

$scope.onHammer = function(event, payload) {
    console.log('I got an event: ', event.type);
    console.log('payload: '+payload);
}

@RyanMullins
Copy link
Owner

I recenty merged #55. Can you take a look at this stuff again and see if those changes solve your issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants