-
Notifications
You must be signed in to change notification settings - Fork 80
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
fix(MovableCoord): add support Hammer 2.0.4, 2.0.5 #432
Conversation
@@ -8,6 +8,7 @@ eg.module("movableCoord", [eg, window, "Hammer"], function(ns, global, HM) { | |||
"use strict"; | |||
|
|||
var SUPPORT_TOUCH = "ontouchstart" in global; | |||
var assignFn = ("assign" in HM) ? HM.assign : HM.merge; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var assignFn = HM.assign || HM.merge;
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
QUnit.test("assignFn (using Hammer)", function(assert) { | ||
// Given | ||
var mockHammer = { | ||
merge: function() {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merge: $.noop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Issue
#431
Details
support Hammer 2.0.4/2.0.5
Preferred reviewers
@netil