Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
64e67fe
Accordion: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
2f67325
Autocomplete: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
e74671c
Button: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
981f479
Datepicker: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
e53a9cb
Dialog: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
4400bbc
Draggable: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
b168215
Droppable: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
6f8d919
Selectmenu: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
eb1606e
Menu: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
772478e
Slider: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
aa02511
Sortable: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
c9cfdd7
Spinner: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
de3321b
Tabs: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
b0941de
Tooltip: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
e57ea45
Widget: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
b465f27
Effects: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
4e049d8
Core: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
c125da3
Mouse: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
cf6fc83
Resizable: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
30cf965
Position: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
4cf9ac3
Progressbar: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
ea64a4e
Tests: Remove core event/alias and deprecated module dependencies
arschmitz May 14, 2015
f20f54d
Tests: Add custom build of core to tests
arschmitz May 14, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion demos/accordion/custom-icons.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
$( "#accordion" ).accordion({
icons: icons
});
$( "#toggle" ).button().click(function() {
$( "#toggle" ).button().on( "click", function() {
if ( $( "#accordion" ).accordion( "option", "icons" ) ) {
$( "#accordion" ).accordion( "option", "icons", null );
} else {
Expand Down
10 changes: 5 additions & 5 deletions demos/accordion/hoverintent.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
*/
$.event.special.hoverintent = {
setup: function() {
$( this ).bind( "mouseover", jQuery.event.special.hoverintent.handler );
$( this ).on( "mouseover", jQuery.event.special.hoverintent.handler );
},
teardown: function() {
$( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler );
$( this ).off( "mouseover", jQuery.event.special.hoverintent.handler );
},
handler: function( event ) {
var currentX, currentY, timeout,
Expand All @@ -42,8 +42,8 @@

function clear() {
target
.unbind( "mousemove", track )
.unbind( "mouseout", clear );
.off( "mousemove", track )
.off( "mouseout", clear );
clearTimeout( timeout );
}

Expand Down Expand Up @@ -75,7 +75,7 @@
}

timeout = setTimeout( handler, 100 );
target.bind({
target.on({
mousemove: track,
mouseout: clear
});
Expand Down
8 changes: 4 additions & 4 deletions demos/autocomplete/combobox.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,11 @@
})
.removeClass( "ui-corner-all" )
.addClass( "custom-combobox-toggle ui-corner-right" )
.mousedown(function() {
.on( "mousedown", function() {
wasOpen = input.autocomplete( "widget" ).is( ":visible" );
})
.click(function() {
input.focus();
.on( "click", function() {
input.trigger( "focus" );

// Close if already visible
if ( wasOpen ) {
Expand Down Expand Up @@ -165,7 +165,7 @@

$(function() {
$( "#combobox" ).combobox();
$( "#toggle" ).click(function() {
$( "#toggle" ).on( "click", function() {
$( "#combobox" ).toggle();
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/autocomplete/multiple-remote.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

$( "#birds" )
// don't navigate away from the field on tab when selecting an item
.bind( "keydown", function( event ) {
.on( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
$( this ).autocomplete( "instance" ).menu.active ) {
event.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion demos/autocomplete/multiple.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

$( "#tags" )
// don't navigate away from the field on tab when selecting an item
.bind( "keydown", function( event ) {
.on( "keydown", function( event ) {
if ( event.keyCode === $.ui.keyCode.TAB &&
$( this ).autocomplete( "instance" ).menu.active ) {
event.preventDefault();
Expand Down
2 changes: 1 addition & 1 deletion demos/button/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
$(function() {
$( "input[type=submit], a, button" )
.button()
.click(function( event ) {
.on( "click", function( event ) {
event.preventDefault();
});
});
Expand Down
4 changes: 2 additions & 2 deletions demos/button/splitbutton.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
$(function() {
$( "#rerun" )
.button()
.click(function() {
.on( "click", function() {
alert( "Running the last action" );
})
.next()
Expand All @@ -28,7 +28,7 @@
primary: "ui-icon-triangle-1-s"
}
})
.click(function() {
.on( "click", function() {
var menu = $( this ).parent().next().show().position({
my: "left top",
at: "left bottom",
Expand Down
4 changes: 2 additions & 2 deletions demos/button/toolbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
primary: "ui-icon-play"
}
})
.click(function() {
.on( "click", function() {
var options;
if ( $( this ).text() === "play" ) {
options = {
Expand All @@ -60,7 +60,7 @@
primary: "ui-icon-stop"
}
})
.click(function() {
.on( "click", function() {
$( "#play" ).button( "option", {
label: "play",
icons: {
Expand Down
2 changes: 1 addition & 1 deletion demos/datepicker/animation.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<script>
$(function() {
$( "#datepicker" ).datepicker();
$( "#anim" ).change(function() {
$( "#anim" ).on( "change", function() {
$( "#datepicker" ).datepicker( "option", "showAnim", $( this ).val() );
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/datepicker/date-formats.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<script>
$(function() {
$( "#datepicker" ).datepicker();
$( "#format" ).change(function() {
$( "#format" ).on( "change", function() {
$( "#datepicker" ).datepicker( "option", "dateFormat", $( this ).val() );
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/datepicker/localization.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script>
$(function() {
$( "#datepicker" ).datepicker( $.datepicker.regional[ "fr" ] );
$( "#locale" ).change(function() {
$( "#locale" ).on( "change", function() {
$( "#datepicker" ).datepicker( "option",
$.datepicker.regional[ $( this ).val() ] );
});
Expand Down
2 changes: 1 addition & 1 deletion demos/dialog/animated.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
});

$( "#opener" ).click(function() {
$( "#opener" ).on( "click", function() {
$( "#dialog" ).dialog( "open" );
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/droppable/photo-manager.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
}

// resolve the icons behavior with event delegation
$( "ul.gallery > li" ).click(function( event ) {
$( "ul.gallery > li" ).on( "click", function( event ) {
var $item = $( this ),
$target = $( event.target );

Expand Down
2 changes: 1 addition & 1 deletion demos/effect/addClass.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</style>
<script>
$(function() {
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
$( "#effect" ).addClass( "newClass", 1000, callback );
});

Expand Down
2 changes: 1 addition & 1 deletion demos/effect/animate.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<script>
$(function() {
var state = true;
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
if ( state ) {
$( "#effect" ).animate({
backgroundColor: "#aa0000",
Expand Down
2 changes: 1 addition & 1 deletion demos/effect/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
};

// set effect from select menu value
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
runEffect();
return false;
});
Expand Down
2 changes: 1 addition & 1 deletion demos/effect/easing.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
ctx.stroke();

// animate on click
graph.click(function() {
graph.on( "click", function() {
wrap
.animate( { height: "hide" }, 2000, name )
.delay( 800 )
Expand Down
2 changes: 1 addition & 1 deletion demos/effect/hide.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
};

// set effect from select menu value
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
runEffect();
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/effect/removeClass.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</style>
<script>
$(function() {
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
$( "#effect" ).removeClass( "newClass", 1000, callback );
});

Expand Down
2 changes: 1 addition & 1 deletion demos/effect/show.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
};

// set effect from select menu value
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
runEffect();
});

Expand Down
2 changes: 1 addition & 1 deletion demos/effect/switchClass.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</style>
<script>
$(function() {
$( "#button" ).click(function(){
$( "#button" ).on( "click", function(){
$( ".newClass" ).switchClass( "newClass", "anotherNewClass", 1000 );
$( ".anotherNewClass" ).switchClass( "anotherNewClass", "newClass", 1000 );
});
Expand Down
2 changes: 1 addition & 1 deletion demos/effect/toggle.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
};

// set effect from select menu value
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
runEffect();
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/effect/toggleClass.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</style>
<script>
$(function() {
$( "#button" ).click(function() {
$( "#button" ).on( "click", function() {
$( "#effect" ).toggleClass( "newClass", 1000 );
});
});
Expand Down
8 changes: 4 additions & 4 deletions demos/position/cycler.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@
right( $( "img:eq(1)" ), animate );
left( $( "img:eq(2)" ).prependTo( "#container" ) );
}
$( "#previous" ).click( previous );
$( "#next" ).click( next );
$( "#previous" ).on( "click", previous );
$( "#next" ).on( "click", next );

$( "img" ).click(function( event ) {
$( "img" ).on( "click", function( event ) {
$( "img" ).index( this ) === 0 ? previous( event ) : next( event );
});

$( window ).resize(function() {
$( window ).on( "resize", function() {
left( $( "img:eq(0)" ), animate );
center( $( "img:eq(1)" ), animate );
right( $( "img:eq(2)" ), animate );
Expand Down
2 changes: 1 addition & 1 deletion demos/position/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

$( ".positionable" ).css( "opacity", 0.5 );

$( "select, input" ).bind( "click keyup change", position );
$( "select, input" ).on( "click keyup change", position );

$( "#parent" ).draggable({
drag: position
Expand Down
4 changes: 2 additions & 2 deletions demos/progressbar/download.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
text: "Close",
click: closeDownload
}]);
$(".ui-dialog button").last().focus();
$(".ui-dialog button").last().trigger( "focus" );
}
});

Expand All @@ -81,7 +81,7 @@
progressbar.progressbar( "value", false );
progressLabel
.text( "Starting download..." );
downloadButton.focus();
downloadButton.trigger( "focus" );
}
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion demos/slider/hotelrooms.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
select[ 0 ].selectedIndex = ui.value - 1;
}
});
$( "#minbeds" ).change(function() {
$( "#minbeds" ).on( "change", function() {
slider.slider( "value", this.selectedIndex + 1 );
});
});
Expand Down
2 changes: 1 addition & 1 deletion demos/sortable/portlets.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
.addClass( "ui-widget-header ui-corner-all" )
.prepend( "<span class='ui-icon ui-icon-minusthick portlet-toggle'></span>");

$( ".portlet-toggle" ).click(function() {
$( ".portlet-toggle" ).on( "click", function() {
var icon = $( this );
icon.toggleClass( "ui-icon-minusthick ui-icon-plusthick" );
icon.closest( ".portlet" ).find( ".portlet-content" ).toggle();
Expand Down
2 changes: 1 addition & 1 deletion demos/spinner/currency.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<link rel="stylesheet" href="../demos.css">
<script>
$(function() {
$( "#currency" ).change(function() {
$( "#currency" ).on( "change", function() {
$( "#spinner" ).spinner( "option", "culture", $( this ).val() );
});

Expand Down
2 changes: 1 addition & 1 deletion demos/spinner/decimal.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
numberFormat: "n"
});

$( "#culture" ).change(function() {
$( "#culture" ).on( "change", function() {
var current = $( "#spinner" ).spinner( "value" );
Globalize.culture( $(this).val() );
$( "#spinner" ).spinner( "value", current );
Expand Down
8 changes: 4 additions & 4 deletions demos/spinner/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@
$(function() {
var spinner = $( "#spinner" ).spinner();

$( "#disable" ).click(function() {
$( "#disable" ).on( "click", function() {
if ( spinner.spinner( "option", "disabled" ) ) {
spinner.spinner( "enable" );
} else {
spinner.spinner( "disable" );
}
});
$( "#destroy" ).click(function() {
$( "#destroy" ).on( "click", function() {
if ( spinner.spinner( "instance" ) ) {
spinner.spinner( "destroy" );
} else {
spinner.spinner();
}
});
$( "#getvalue" ).click(function() {
$( "#getvalue" ).on( "click", function() {
alert( spinner.spinner( "value" ) );
});
$( "#setvalue" ).click(function() {
$( "#setvalue" ).on( "click", function() {
spinner.spinner( "value", 5 );
});

Expand Down
2 changes: 1 addition & 1 deletion demos/spinner/time.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
$(function() {
$( "#spinner" ).timespinner();

$( "#culture" ).change(function() {
$( "#culture" ).on( "change", function() {
var current = $( "#spinner" ).timespinner( "value" );
Globalize.culture( $(this).val() );
$( "#spinner" ).timespinner( "value", current );
Expand Down
Loading