Skip to content

jQuery events data is not passed to listener #1496

@tadatuta

Description

@tadatuta

As the result we've got at least an error in touch.blocks/ua/__dom/ua__dom.js: Error on orientation change:

._domEvents(bemDom.win).on(
    'orientchange',
    function(e, data) { // data is undefined here
        ua.width = data.width;
        ua.height = data.height;
        ua.landscape = data.landscape;
        this.setMod('orient', data.landscape? 'landscape' : 'portrait');
    });

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