From 47188b792617a0030ccec07c6df27335dc3aa430 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Thu, 16 Jul 2015 09:13:15 -0400 Subject: Core: Move escape selector into its own module Ref #9647 --- ui/core.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'ui/core.js') 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 -- cgit v1.2.3