All: Migrate away from deprecated/removed Core APIs
Summary of the changes: * Build: Add jQuery 3.2.0-3.4.1 to versions UI can be tested against * Build: Load jQuery & Migrate via HTTPS * Build: Add package-lock.json to .gitignore * Build: Update jQuery Migrate from 3.0.0 to 3.1.0 * Build: Allow to run tests against jQuery 3.x-git * Build: Fix formatting according to JSCS rules * Build: Disable JSCS for the inlined jQuery Color * All: Switch from $.isArray to Array.isArray (jQuery.isArray will be removed in jQuery 4.0) * All: Switch from `$.isFunction( x )` to `typeof x === "function"` (jQuery.isFunction will be removed in jQuery 4.0) * All: Inline jQuery.isWindow as it'll be removed in jQuery 4.0 * Effects: Fix a timing issue in a variable declaration. Previously, a jQuery object was created, chained & assigned to a variable that was then accessed in a callback used inside of this chained definition. Due to a timing difference in when the callback fired for the first time in latest jQuery master, it was being called before the variable was defined. * Tests: Make dialog & draggable unit tests less strict (newest jQuery returns fractional results in some cases, making comparisons fail when there's a tiny difference) * All: Migrate from $.trim to bare String.prototype.trim (jQuery.trim will be deprecated in jQuery 3.5) Closes gh-1901
- Loading branch information
- +1 −0 .gitignore
- +51 −29 Gruntfile.js
- +6 −0 bower.json
- +4 −0 build/tasks/testswarm.js
- +2 −1 demos/autocomplete/xml.html
- +3 −1 demos/tooltip/video-player.html
- +36 −0 external/jquery-3.2.0/LICENSE.txt
- +10,244 −0 external/jquery-3.2.0/jquery.js
- +36 −0 external/jquery-3.2.1/LICENSE.txt
- +10,253 −0 external/jquery-3.2.1/jquery.js
- +36 −0 external/jquery-3.3.0/LICENSE.txt
- +10,364 −0 external/jquery-3.3.0/jquery.js
- +36 −0 external/jquery-3.3.1/LICENSE.txt
- +10,364 −0 external/jquery-3.3.1/jquery.js
- +20 −0 external/jquery-3.4.0/LICENSE.txt
- +10,588 −0 external/jquery-3.4.0/jquery.js
- +20 −0 external/jquery-3.4.1/LICENSE.txt
- +10,598 −0 external/jquery-3.4.1/jquery.js
- +1 −1 external/{jquery-migrate-3.0.0 → jquery-migrate-3.1.0}/LICENSE.txt
- +180 −42 external/{jquery-migrate-3.0.0 → jquery-migrate-3.1.0}/jquery-migrate.js
- +4 −4 tests/lib/bootstrap.js
- +2 −2 tests/lib/common.js
- +3 −0 tests/lib/qunit.js
- +5 −5 tests/unit/checkboxradio/options.js
- +3 −2 tests/unit/core/core.js
- +1 −1 tests/unit/dialog/deprecated.js
- +13 −9 tests/unit/dialog/options.js
- +8 −3 tests/unit/draggable/options.js
- +1 −1 tests/unit/effects/core.js
- +1 −1 tests/unit/menu/helper.js
- +7 −7 tests/unit/selectmenu/core.js
- +4 −4 tests/unit/selectmenu/methods.js
- +4 −1 tests/unit/subsuite.js
- +5 −5 tests/unit/widget/core.js
- +1 −1 tests/visual/dialog/performance.html
- +28 −22 ui/effect.js
- +8 −4 ui/position.js
- +5 −4 ui/widget.js
- +2 −2 ui/widgets/autocomplete.js
- +2 −1 ui/widgets/button.js
- +1 −1 ui/widgets/controlgroup.js
- +2 −2 ui/widgets/dialog.js
- +3 −3 ui/widgets/draggable.js
- +2 −2 ui/widgets/droppable.js
- +2 −1 ui/widgets/menu.js
- +1 −1 ui/widgets/resizable.js
- +3 −3 ui/widgets/slider.js
- +6 −6 ui/widgets/sortable.js
- +1 −1 ui/widgets/spinner.js
- +4 −4 ui/widgets/tabs.js
- +2 −2 ui/widgets/tooltip.js
| @@ -0,0 +1,36 @@ | ||
| Copyright JS Foundation and other contributors, https://js.foundation/ | ||
|
|
||
| This software consists of voluntary contributions made by many | ||
| individuals. For exact contribution history, see the revision history | ||
| available at https://github.com/jquery/jquery | ||
|
|
||
| The following license applies to all parts of this software except as | ||
| documented below: | ||
|
|
||
| ==== | ||
|
|
||
| Permission is hereby granted, free of charge, to any person obtaining | ||
| a copy of this software and associated documentation files (the | ||
| "Software"), to deal in the Software without restriction, including | ||
| without limitation the rights to use, copy, modify, merge, publish, | ||
| distribute, sublicense, and/or sell copies of the Software, and to | ||
| permit persons to whom the Software is furnished to do so, subject to | ||
| the following conditions: | ||
|
|
||
| The above copyright notice and this permission notice shall be | ||
| included in all copies or substantial portions of the Software. | ||
|
|
||
| THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
| MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
| LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
| OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
| WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
|
|
||
| ==== | ||
|
|
||
| All files located in the node_modules and external directories are | ||
| externally maintained libraries used by this software which have their | ||
| own licenses; we recommend you read them, as their terms may differ from | ||
| the terms above. |
This comment has been minimized.
Is
String.prototype.trim.call( value )preferred tovalue.trim()?This comment has been minimized.
@DenisLabrecque Usually not, unless you're not sure if
valueis a string.