Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
25 additions
and 9 deletions.
- +2 −9 ui/core.js
- +21 −0 ui/escape-selector.js
- +1 −0 ui/selectmenu.js
- +1 −0 ui/tabs.js
@@ -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" ); | ||
}; | ||
} )(); | ||
|
||
} ) ); |