Skip to content
This repository has been 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

Open
miguelo8910 opened this issue Aug 9, 2022 · 0 comments

Comments

@miguelo8910
Copy link

miguelo8910 commented Aug 9, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant