aboutsummaryrefslogtreecommitdiffstats
path: root/tests/visual
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-05-13 22:05:07 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-05-20 14:27:58 -0400
commitba37ca9ea59149a87127a718432a899334cbb443 (patch)
tree3c26c877b783702b953039b457b37a09d07cca21 /tests/visual
parenta17180202d6fd7c137feba9ecc228554d44a7a7e (diff)
downloadjquery-ui-ba37ca9ea59149a87127a718432a899334cbb443.tar.gz
jquery-ui-ba37ca9ea59149a87127a718432a899334cbb443.zip
Position: Remove core event/alias and deprecated module dependencies
Diffstat (limited to 'tests/visual')
-rw-r--r--tests/visual/position/position.html6
-rw-r--r--tests/visual/position/position_feedback.html2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/visual/position/position.html b/tests/visual/position/position.html
index d9c7adb85..70a9c40e5 100644
--- a/tests/visual/position/position.html
+++ b/tests/visual/position/position.html
@@ -54,17 +54,17 @@
drag: function() { position(); }
});
- $( "#within" ).click(function() {
+ $( "#within" ).on( "click", function() {
within = within.is( ".demo" ) ? $( window ) : $( ".demo" );
position();
});
- $( "#margin" ).click(function() {
+ $( "#margin" ).on( "click", function() {
positionable.toggleClass( "extra-margin" );
position();
});
- $( "select, input" ).bind( "click keyup change", function() { position(); } );
+ $( "select, input" ).on( "click keyup change", function() { position(); } );
position();
});
diff --git a/tests/visual/position/position_feedback.html b/tests/visual/position/position_feedback.html
index 97682c628..988451026 100644
--- a/tests/visual/position/position_feedback.html
+++ b/tests/visual/position/position_feedback.html
@@ -64,7 +64,7 @@
using: using
};
};
- $( document ).bind( "mousemove", function( event ) {
+ $( document ).on( "mousemove", function( event ) {
element.position( positionWithOffset(
event.pageX - targetOffset.left, event.pageY - targetOffset.top ) );
oppositeElement.position( positionWithOffset(