Skip to content

[UI Position 1.14.1] Uncaught SyntaxError: Missing initializer in using declaration #2314

Closed
@alex-solovyev

Description

@alex-solovyev

I started encountering an error after upgrading Google Chrome to Version 131.0.6778.86 (Official Build) (x86_64).

The issue is reproducible only when using the uncompressed version of jQuery UI.
The relevant code:

if (options.using) {
    // Adds feedback as the second argument to the using callback, if present
    using = function(props) {
      // skipped...
    };
}

It seems that the variable using is being used as a function without being declared properly. Adding var in front of using resolves the issue.

Example: CodePen link

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions