mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
All: Remove the deprecated ui/core.js
file
Also, fix checkboxradio visual tests. Ref gh-2249
This commit is contained in:
parent
9887579b61
commit
03cde342cd
@ -4,7 +4,6 @@ module.exports = function( grunt ) {
|
|||||||
|
|
||||||
// files
|
// files
|
||||||
const coreFiles = [
|
const coreFiles = [
|
||||||
"core.js",
|
|
||||||
"widget.js",
|
"widget.js",
|
||||||
"widgets/mouse.js",
|
"widgets/mouse.js",
|
||||||
"widgets/draggable.js",
|
"widgets/draggable.js",
|
||||||
@ -167,7 +166,7 @@ grunt.initConfig( {
|
|||||||
findNestedDependencies: true,
|
findNestedDependencies: true,
|
||||||
skipModuleInsertion: true,
|
skipModuleInsertion: true,
|
||||||
exclude: [ "jquery" ],
|
exclude: [ "jquery" ],
|
||||||
include: expandFiles( [ "ui/**/*.js", "!ui/core.js", "!ui/i18n/*" ] ),
|
include: expandFiles( [ "ui/**/*.js", "!ui/i18n/*" ] ),
|
||||||
out: "dist/jquery-ui.js",
|
out: "dist/jquery-ui.js",
|
||||||
wrap: {
|
wrap: {
|
||||||
start: createBanner( uiFiles )
|
start: createBanner( uiFiles )
|
||||||
|
@ -5,11 +5,6 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>jQuery UI Slider - Multiple sliders</title>
|
<title>jQuery UI Slider - Multiple sliders</title>
|
||||||
<link rel="stylesheet" href="../../themes/base/all.css">
|
<link rel="stylesheet" href="../../themes/base/all.css">
|
||||||
<script src="../../external/jquery/jquery.js"></script>
|
|
||||||
<script src="../../ui/core.js"></script>
|
|
||||||
<script src="../../ui/widget.js"></script>
|
|
||||||
<script src="../../ui/mouse.js"></script>
|
|
||||||
<script src="../../ui/slider.js"></script>
|
|
||||||
<link rel="stylesheet" href="../demos.css">
|
<link rel="stylesheet" href="../demos.css">
|
||||||
<style>
|
<style>
|
||||||
#eq > span {
|
#eq > span {
|
||||||
|
@ -4,13 +4,8 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<title>jQuery UI - Checkboxes</title>
|
<title>jQuery UI - Checkboxes</title>
|
||||||
<link rel="stylesheet" href="../../../themes/base/all.css">
|
<link rel="stylesheet" href="../../../themes/base/all.css">
|
||||||
<script src="../../../external/jquery/jquery.js"></script>
|
<script src="../../../external/requirejs/require.js"></script>
|
||||||
<script src="../../../ui/core.js"></script>
|
<script src="../../../demos/bootstrap.js">
|
||||||
<script src="../../../ui/widget.js"></script>
|
|
||||||
<script src="../../../ui/button.js"></script>
|
|
||||||
<script src="../../../ui/checkboxradio.js"></script>
|
|
||||||
<script>
|
|
||||||
$(function() {
|
|
||||||
var checkboxes = $( "form input" ).checkboxradio();
|
var checkboxes = $( "form input" ).checkboxradio();
|
||||||
|
|
||||||
$( ".controls input, .controls select" ).on( "change keyup", function() {
|
$( ".controls input, .controls select" ).on( "change keyup", function() {
|
||||||
@ -23,15 +18,14 @@
|
|||||||
if ( option != "label" || value !== "" ) {
|
if ( option != "label" || value !== "" ) {
|
||||||
checkboxes.checkboxradio( "option", option, value );
|
checkboxes.checkboxradio( "option", option, value );
|
||||||
}
|
}
|
||||||
});
|
} );
|
||||||
$( ".controls > button" ).on( "click", function() {
|
$( ".controls > button" ).on( "click", function() {
|
||||||
if ( this.id !== "create" ) {
|
if ( this.id !== "create" ) {
|
||||||
checkboxes.checkboxradio( this.id );
|
checkboxes.checkboxradio( this.id );
|
||||||
} else {
|
} else {
|
||||||
checkboxes.checkboxradio();
|
checkboxes.checkboxradio();
|
||||||
}
|
}
|
||||||
});
|
} );
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
<style>
|
<style>
|
||||||
#format { margin-top: 2em; }
|
#format { margin-top: 2em; }
|
||||||
|
18
ui/core.js
18
ui/core.js
@ -1,18 +0,0 @@
|
|||||||
// This file is deprecated in 1.12.0 to be removed in 1.14
|
|
||||||
( function() {
|
|
||||||
"use strict";
|
|
||||||
|
|
||||||
define( [
|
|
||||||
"jquery",
|
|
||||||
"./data",
|
|
||||||
"./disable-selection",
|
|
||||||
"./focusable",
|
|
||||||
"./keycode",
|
|
||||||
"./labels",
|
|
||||||
"./plugin",
|
|
||||||
"./scroll-parent",
|
|
||||||
"./tabbable",
|
|
||||||
"./unique-id",
|
|
||||||
"./version"
|
|
||||||
] );
|
|
||||||
} )();
|
|
Loading…
Reference in New Issue
Block a user