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

bug off event #17

Open
laraduarte opened this issue Jun 11, 2014 · 0 comments
Open

bug off event #17

laraduarte opened this issue Jun 11, 2014 · 0 comments

Comments

@laraduarte
Copy link

Hi,
I am a developer of touchscreen apps that are html based and i really need pay attention to on and off events.
i tested this function in the new version of hammer, and as far as i can say it´s not working, index is always false.

In versions v1.0.6dev works really good.
This is what i normally do: node.obj.off(node.event, node.callback);

off: function offEvent(gestures, handler) {
var self = this;

    console.log("gestures :: ", gestures);
    console.log("handler :: ", handler);

    Event.off(self.element, gestures, handler, function(type) {
        var index = Utils.inArray({ gesture: type, handler: handler });


        console.log("index  :: ", index);


        if(index !== false) {
            self.eventHandlers.splice(index, 1);
        }
    });
    return self;
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

No branches or pull requests

1 participant