Skip to content

Global events are undocumented and deprecated #22

@aland

Description

@aland

In the processDoc function there are some global events which are causing issues with newer versions of jQuery.

$.event.trigger('taconite-begin-notify', [taconiteDoc]);
$.event.trigger('taconite-rawdata-notify', [rawData]);
$.event.trigger('taconite-complete-notify', [xml, !!status, status === true ? null : status]);

Can these be easily changed to be non-global events? I tried the below but get a new error. I'm not clear where these custom events are defined, for example I don't see any calls to 'bind' them to the object so I'm not sure how else I can fix it.

I've tried:

$(taconiteDoc).event.trigger('taconite-begin-notify');
$(rawData).event.trigger('taconite-rawdata-notify');
$(xml).event.trigger('taconite-complete-notify', !!status, status === true ? null : status]);

But get "TypeError: $(...).event is undefined"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions