"../version",
"../keycode",
"../unique-id",
- "../tabbable"
+ "../tabbable",
+ "../escape-selector"
], factory );
} else {
// Check if the needed day is already present in our grid due
// to eachDay option changes (eg. other-months demo)
return !this.grid.find(
- this._sanitizeSelector( "#" + this._getDayId( this.date ) )
+ "#" + $.ui.escapeSelector( this._getDayId( this.date ) )
).length;
}
.removeClass( "ui-state-focus" );
this.activeDescendant = this.grid.find(
- this._sanitizeSelector( "#" + id ) + " > button"
+ "#" + $.ui.escapeSelector( id ) + " > button"
).addClass( "ui-state-focus" );
},
return $( "<a>" ).text( this.labels[ key ] ).html();
},
- _sanitizeSelector: function( hash ) {
- return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g, "\\$&" ) : "";
- },
-
_setHiddenPicker: function() {
this.element.attr( {
"aria-hidden": "true",