Skip to content

Commit 5ee324d

Browse files
committed
Effects: Remove core event/alias and deprecated module dependencies
1 parent e543253 commit 5ee324d

File tree

15 files changed

+28
-28
lines changed

15 files changed

+28
-28
lines changed

demos/effect/addClass.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</style>
1616
<script>
1717
$(function() {
18-
$( "#button" ).click(function() {
18+
$( "#button" ).on( "click", function() {
1919
$( "#effect" ).addClass( "newClass", 1000, callback );
2020
});
2121

demos/effect/animate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<script>
1717
$(function() {
1818
var state = true;
19-
$( "#button" ).click(function() {
19+
$( "#button" ).on( "click", function() {
2020
if ( state ) {
2121
$( "#effect" ).animate({
2222
backgroundColor: "#aa0000",

demos/effect/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
};
6060

6161
// set effect from select menu value
62-
$( "#button" ).click(function() {
62+
$( "#button" ).on( "click", function() {
6363
runEffect();
6464
return false;
6565
});

demos/effect/easing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
ctx.stroke();
8080

8181
// animate on click
82-
graph.click(function() {
82+
graph.on( "click", function() {
8383
wrap
8484
.animate( { height: "hide" }, 2000, name )
8585
.delay( 800 )

demos/effect/hide.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
};
5656

5757
// set effect from select menu value
58-
$( "#button" ).click(function() {
58+
$( "#button" ).on( "click", function() {
5959
runEffect();
6060
});
6161
});

demos/effect/removeClass.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</style>
1616
<script>
1717
$(function() {
18-
$( "#button" ).click(function() {
18+
$( "#button" ).on( "click", function() {
1919
$( "#effect" ).removeClass( "newClass", 1000, callback );
2020
});
2121

demos/effect/show.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
};
5656

5757
// set effect from select menu value
58-
$( "#button" ).click(function() {
58+
$( "#button" ).on( "click", function() {
5959
runEffect();
6060
});
6161

demos/effect/switchClass.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
</style>
1717
<script>
1818
$(function() {
19-
$( "#button" ).click(function(){
19+
$( "#button" ).on( "click", function(){
2020
$( ".newClass" ).switchClass( "newClass", "anotherNewClass", 1000 );
2121
$( ".anotherNewClass" ).switchClass( "anotherNewClass", "newClass", 1000 );
2222
});

demos/effect/toggle.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
};
6464

6565
// set effect from select menu value
66-
$( "#button" ).click(function() {
66+
$( "#button" ).on( "click", function() {
6767
runEffect();
6868
});
6969
});

demos/effect/toggleClass.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</style>
1616
<script>
1717
$(function() {
18-
$( "#button" ).click(function() {
18+
$( "#button" ).on( "click", function() {
1919
$( "#effect" ).toggleClass( "newClass", 1000 );
2020
});
2121
});

0 commit comments

Comments
 (0)