diff options
author | Alexander Schmitz <arschmitz@gmail.com> | 2015-07-16 09:13:15 -0400 |
---|---|---|
committer | Alexander Schmitz <arschmitz@gmail.com> | 2015-08-08 00:29:36 -0400 |
commit | 47188b792617a0030ccec07c6df27335dc3aa430 (patch) | |
tree | 00b6a3592d3d0590f4d76346f0e59e250d802a29 /ui/core.js | |
parent | 475ccefd97ec24d76cfa6767c007501c14934ba6 (diff) | |
download | jquery-ui-47188b792617a0030ccec07c6df27335dc3aa430.tar.gz jquery-ui-47188b792617a0030ccec07c6df27335dc3aa430.zip |
Core: Move escape selector into its own module
Ref #9647
Diffstat (limited to 'ui/core.js')
-rw-r--r-- | ui/core.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/ui/core.js b/ui/core.js index a0931dffa..fe627dea6 100644 --- a/ui/core.js +++ b/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 |