File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 71
71
right ( $ ( "img:eq(1)" ) , animate ) ;
72
72
left ( $ ( "img:eq(2)" ) . prependTo ( "#container" ) ) ;
73
73
}
74
- $ ( "#previous" ) . click ( previous ) ;
75
- $ ( "#next" ) . click ( next ) ;
74
+ $ ( "#previous" ) . on ( "click" , previous ) ;
75
+ $ ( "#next" ) . on ( "click" , next ) ;
76
76
77
- $ ( "img" ) . click ( function ( event ) {
77
+ $ ( "img" ) . on ( "click" , function ( event ) {
78
78
$ ( "img" ) . index ( this ) === 0 ? previous ( event ) : next ( event ) ;
79
79
} ) ;
80
80
81
- $ ( window ) . resize ( function ( ) {
81
+ $ ( window ) . on ( "resize" , function ( ) {
82
82
left ( $ ( "img:eq(0)" ) , animate ) ;
83
83
center ( $ ( "img:eq(1)" ) , animate ) ;
84
84
right ( $ ( "img:eq(2)" ) , animate ) ;
Original file line number Diff line number Diff line change 54
54
55
55
$ ( ".positionable" ) . css ( "opacity" , 0.5 ) ;
56
56
57
- $ ( "select, input" ) . bind ( "click keyup change" , position ) ;
57
+ $ ( "select, input" ) . on ( "click keyup change" , position ) ;
58
58
59
59
$ ( "#parent" ) . draggable ( {
60
60
drag : position
Original file line number Diff line number Diff line change 54
54
drag : function ( ) { position ( ) ; }
55
55
} ) ;
56
56
57
- $ ( "#within" ) . click ( function ( ) {
57
+ $ ( "#within" ) . on ( "click" , function ( ) {
58
58
within = within . is ( ".demo" ) ? $ ( window ) : $ ( ".demo" ) ;
59
59
position ( ) ;
60
60
} ) ;
61
61
62
- $ ( "#margin" ) . click ( function ( ) {
62
+ $ ( "#margin" ) . on ( "click" , function ( ) {
63
63
positionable . toggleClass ( "extra-margin" ) ;
64
64
position ( ) ;
65
65
} ) ;
66
66
67
- $ ( "select, input" ) . bind ( "click keyup change" , function ( ) { position ( ) ; } ) ;
67
+ $ ( "select, input" ) . on ( "click keyup change" , function ( ) { position ( ) ; } ) ;
68
68
69
69
position ( ) ;
70
70
} ) ;
Original file line number Diff line number Diff line change 64
64
using : using
65
65
} ;
66
66
} ;
67
- $ ( document ) . bind ( "mousemove" , function ( event ) {
67
+ $ ( document ) . on ( "mousemove" , function ( event ) {
68
68
element . position ( positionWithOffset (
69
69
event . pageX - targetOffset . left , event . pageY - targetOffset . top ) ) ;
70
70
oppositeElement . position ( positionWithOffset (
You can’t perform that action at this time.
0 commit comments