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

fix(MovableCoord): add support Hammer 2.0.4, 2.0.5 #432

Merged
merged 3 commits into from
Dec 16, 2016

Conversation

sculove
Copy link
Contributor

@sculove sculove commented Dec 16, 2016

Issue

#431

Details

support Hammer 2.0.4/2.0.5

Preferred reviewers

@netil

@@ -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;
Copy link
Member

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;

Copy link
Contributor Author

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() {}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merge: $.noop

Copy link
Member

@netil netil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sculove sculove merged commit 76fc44a into naver:master Dec 16, 2016
@sculove sculove deleted the checkHammerversion branch December 16, 2016 06:54
malangfox pushed a commit that referenced this pull request Jan 6, 2025
malangfox pushed a commit that referenced this pull request Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants