Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

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

Description

@andre487

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions