delay: 0,
minLength: 0
});
- element.on( "keypress", function( e ) {
+ element.bind( "keypress", function( e ) {
didMove = !e.isDefaultPrevented();
});
element.simulate( "keydown", { keyCode: ( isKeyUp ? $.ui.keyCode.UP : $.ui.keyCode.DOWN ) } );
using: using
};
};
- $( document ).on( "mousemove", function( event ) {
+ $( document ).bind( "mousemove", function( event ) {
element.position( positionWithOffset(
event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
oppositeElement.position( positionWithOffset(
$('#disabled1, #disabled2, #disabled3').selectmenu();
var disabled4 = $('#disabled4').selectmenu();
- $("#disable_select").on("click", function() {
+ $("#disable_select").bind("click", function() {
if (disable_select) {
disable_select = false;
disabled4.selectmenu("disable");
return false;
});
- $("#disable_option").on("click", function() {
+ $("#disable_option").bind("click", function() {
if (disable_option) {
disable_option = false;
disabled4.find("option:eq(0)").attr("disabled", "disabled");
return false;
});
- $("#disable_optgroup").on("click", function() {
+ $("#disable_optgroup").bind("click", function() {
if (disable_optgroup) {
disable_optgroup = false;
disabled4.find("optgroup:eq(0)").attr("disabled", "disabled");