mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 01:24:06 -08:00
22 lines
475 B
JavaScript
22 lines
475 B
JavaScript
|
( 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" );
|
||
|
};
|
||
|
} )();
|
||
|
|
||
|
} ) );
|