it is useless and with nuxeo-ui-elements, it is loaded twice causing sometimes jquery not found.'
It causes random bugs on CI:
https://qa.nuxeo.org/jenkins/job/master/job/nuxeo-ui-elements-master/192/console
09:23:48 Selenium server running on port 39896 09:23:48 Web server running on port 2000 and serving from /opt/jenkins/workspace/master/nuxeo-ui-elements-master 09:23:49 chrome 54 Beginning tests via http://localhost:2000/components/nuxeo-ui-elements-master/generated-index.html?cli_browser_id=0 09:23:49 chrome failed to maximize 09:23:50 chrome 54 Tests failed: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function 09:23:50 HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264 09:23:50 HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75 09:23:50 HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455 09:23:50 HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445 09:23:50 HTMLElement._readySelf at /components/polymer/polymer-mini.html:88 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:75 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 Test run ended in failure: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function 09:23:50 HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264 09:23:50 HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75 09:23:50 HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455 09:23:50 HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445 09:23:50 HTMLElement._readySelf at /components/polymer/polymer-mini.html:88 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:75 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 09:23:50 chrome 54 (error) 09:23:50 09:23:50 Error: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function 09:23:50 HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264 09:23:50 HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75 09:23:50 HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455 09:23:50 HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445 09:23:50 HTMLElement._readySelf at /components/polymer/polymer-mini.html:88 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:75 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 09:23:50 [31merror[39m: cli runtime exception: Error: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function 09:23:50 HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264 09:23:50 HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75 09:23:50 HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455 09:23:50 HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445 09:23:50 HTMLElement._readySelf at /components/polymer/polymer-mini.html:88 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:75 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 [31merror[39m: Error: Error thrown outside of test function: jQuery(...).val(...).select2 is not a function 09:23:50 HTMLElement._initSelect2 at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2-behavior.html:264 09:23:50 HTMLElement.ready at /components/nuxeo-ui-elements-master/widgets/nuxeo-select2.html:75 09:23:50 HTMLElement._invokeBehavior at /components/polymer/polymer-micro.html:455 09:23:50 HTMLElement._doBehavior at /components/polymer/polymer-micro.html:445 09:23:50 HTMLElement._readySelf at /components/polymer/polymer-mini.html:88 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:75 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 HTMLElement._readyClients at /components/polymer/polymer-mini.html:82 09:23:50 HTMLElement._ready at /components/polymer/polymer-mini.html:70 09:23:50 at /opt/jenkins/workspace/master/nuxeo-ui-elements-master/node_modules/polymer-cli/node_modules/web-component-tester/runner/steps.js:151:27 09:23:50 at next (native) 09:23:50 at fulfilled (/opt/jenkins/workspace/master/nuxeo-ui-elements-master/node_modules/polymer-cli/node_modules/web-component-tester/runner/steps.js:4:58) 09:23:50 at process._tickCallback (node.js:369:9) 09:23:50 Build step 'Execute shell' marked build as failure