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

$.observable.un with handlers hash and ctx not working #633

Open
andre487 opened this issue Apr 15, 2015 · 1 comment
Open

$.observable.un with handlers hash and ctx not working #633

andre487 opened this issue Apr 15, 2015 · 1 comment
Labels

Comments

@andre487
Copy link
Contributor

When we call un like this:

obs.un({
    event1: handler1,
    event2: handler2
}, ctx);

it does not works because the code does not make corrections in hash branch:

            } else {
                var _this = this;
                $.each(e, function(e, fn) {
                    _this.un(e, fn, ctx);
                });
            }

In this place the ctx var is always undefined because the right ctx is assigned to function's param fn.

@deeonis deeonis added the TODO label Apr 15, 2015
@Yeti-or
Copy link
Member

Yeti-or commented Apr 15, 2015

BEM-2250

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

No branches or pull requests

3 participants