Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions angular.hammer.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,8 @@

var hammer = element.data('hammer'),
managerOpts = angular.fromJson(attrs.hmManagerOptions),
recognizerOpts = angular.fromJson(attrs.hmRecognizerOptions);

recognizerOpts = angular.fromJson(attrs.hmRecognizerOptions),
payload = attrs.hmPayload;

// Check for a manager, make one if needed and destroy it when
// the scope is destroyed
Expand Down Expand Up @@ -166,7 +166,7 @@
var fn = handlerExpr(scope, {'$event':event});

if (typeof fn === 'function') {
fn.call(scope, event);
fn.call(scope, event, payload);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "AngularHammer",
"version": "2.1.10",
"version": "2.1.11",
"authors": [
"Ryan S Mullins <ryan@ryanmullins.org>"
],
Expand Down