mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
parent
475ccefd97
commit
47188b7926
11
ui/core.js
11
ui/core.js
@ -22,6 +22,7 @@
|
||||
"jquery",
|
||||
"./data",
|
||||
"./disable-selection",
|
||||
"./escape-selector",
|
||||
"./focusable",
|
||||
"./version"
|
||||
], factory );
|
||||
@ -90,15 +91,7 @@ $.extend( $.ui, {
|
||||
if ( element && element.nodeName.toLowerCase() !== "body" ) {
|
||||
$( element ).trigger( "blur" );
|
||||
}
|
||||
},
|
||||
|
||||
// Internal use only
|
||||
escapeSelector: ( function() {
|
||||
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
|
||||
return function( selector ) {
|
||||
return selector.replace( selectorEscape, "\\$1" );
|
||||
};
|
||||
} )()
|
||||
}
|
||||
} );
|
||||
|
||||
// plugins
|
||||
|
21
ui/escape-selector.js
Normal file
21
ui/escape-selector.js
Normal file
@ -0,0 +1,21 @@
|
||||
( function( factory ) {
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ "jquery", "./version" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
} ( function( $ ) {
|
||||
|
||||
// Internal use only
|
||||
return $.ui.escapeSelector = ( function() {
|
||||
var selectorEscape = /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g;
|
||||
return function( selector ) {
|
||||
return selector.replace( selectorEscape, "\\$1" );
|
||||
};
|
||||
} )();
|
||||
|
||||
} ) );
|
@ -24,6 +24,7 @@
|
||||
"jquery",
|
||||
"./core",
|
||||
"./version",
|
||||
"./escape-selector",
|
||||
"./widget",
|
||||
"./position",
|
||||
"./menu"
|
||||
|
@ -23,6 +23,7 @@
|
||||
define( [
|
||||
"jquery",
|
||||
"./core",
|
||||
"./escape-selector",
|
||||
"./version",
|
||||
"./widget"
|
||||
], factory );
|
||||
|
Loading…
Reference in New Issue
Block a user