Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

VSS/Controls/Dialogs not suport jQuery UI Widget 1.13.1 error t.uniqueSort is not a function #163

@miguelo8910

Description

@miguelo8910

I find myself using the VSS/Controls/Dialogs in Web Extensión in tfs

I have index.ts

/// <reference types="vss-web-extension-sdk" />
import Dialogs = require("VSS/Controls/Dialogs");

Dialogs.showMessageDialog("Hello Word");

Error
Jquery

in versión jQuery UI Widget 1.11.4 no error is displayed

in versión jQuery UI Widget 1.13.1 error id displayed

Checking the difference in versions of Widget.js fails in this snippet in version 1.11.4 it was not

function processClassString( classes, checkOption ) {
            var current, i;
            for ( i = 0; i < classes.length; i++ ) {
                current = that.classesElementLookup[ classes[ i ] ] || $();
                if ( options.add ) {
                    bindRemoveEvent();
                    current = $( $.uniqueSort( current.get().concat( options.element.get() ) ) );
                } else {
                    current = $( current.not( options.element ).get() );
                }
                that.classesElementLookup[ classes[ i ] ] = current;
                full.push( classes[ i ] );
                if ( checkOption && options.classes[ classes[ i ] ] ) {
                    full.push( options.classes[ classes[ i ] ] );
                }
            }
        }

I don't know if I should check something about promises in typescript

Internally the SDK is pointing to the version that fails

https://dev.azure.com/{organization}/_static/tfs/**M208_20220803.13**/_scripts/TFS/min/jQueryUI/widget.js
Microsoft recently updated the Jquery UI library but it fails

days ago it worked when the SDK loaded widget.js from this url
ttps://dev.azure.com/{organization}/_static/tfs/M207_20220803.13/_scripts/TFS/min/jQueryUI/widget.js

thanks

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