Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf667d09

Browse files
committed
Interactions: Update widget defaults to match documented API.
1 parentcf7dc08 commitf667d09

File tree

10 files changed

+91
-15
lines changed

10 files changed

+91
-15
lines changed

‎tests/unit/draggable/draggable_common.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ TestHelpers.commonWidgetTests( "draggable", {
66
cancel:"input,textarea,button,select,option",
77
connectToSortable:false,
88
containment:false,
9-
create:null,
109
cursor:"auto",
1110
cursorAt:false,
1211
delay:0,
@@ -28,6 +27,12 @@ TestHelpers.commonWidgetTests( "draggable", {
2827
snapMode:"both",
2928
snapTolerance:20,
3029
stack:false,
31-
zIndex:false
30+
zIndex:false,
31+
32+
// callbacks
33+
create:null,
34+
drag:null,
35+
start:null,
36+
stop:null
3237
}
3338
});

‎tests/unit/droppable/droppable_common.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,18 @@ TestHelpers.commonWidgetTests( "droppable", {
33
accept:"*",
44
activeClass:false,
55
addClasses:true,
6-
create:null,
76
disabled:false,
87
greedy:false,
98
hoverClass:false,
109
scope:"default",
11-
tolerance:"intersect"
10+
tolerance:"intersect",
11+
12+
// callbacks
13+
activate:null,
14+
create:null,
15+
deactivate:null,
16+
drop:null,
17+
out:null,
18+
over:null
1219
}
1320
});

‎tests/unit/resizable/resizable_common.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
TestHelpers.commonWidgetTests("resizable",{
1+
TestHelpers.commonWidgetTests("resizable",{
22
defaults:{
33
alsoResize:false,
44
animate:false,
@@ -22,6 +22,9 @@ TestHelpers.commonWidgetTests("resizable", {
2222
zIndex:90,
2323

2424
// callbacks
25-
create:null
25+
create:null,
26+
resize:null,
27+
start:null,
28+
stop:null
2629
}
2730
});

‎tests/unit/selectable/selectable_common.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@ TestHelpers.commonWidgetTests("selectable", {
33
appendTo:"body",
44
autoRefresh:true,
55
cancel:"input,textarea,button,select,option",
6-
create:null,
76
delay:0,
87
disabled:false,
98
distance:0,
109
filter:"*",
11-
tolerance:"touch"
10+
tolerance:"touch",
11+
12+
// callbacks
13+
create:null,
14+
selected:null,
15+
selecting:null,
16+
start:null,
17+
stop:null,
18+
unselected:null,
19+
unselecting:null
1220
}
1321
});

‎tests/unit/sortable/sortable_common.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ TestHelpers.commonWidgetTests( "sortable", {
55
cancel:"input,textarea,button,select,option",
66
connectWith:false,
77
containment:false,
8-
create:null,
98
cursor:"auto",
109
cursorAt:false,
1110
delay:0,
@@ -26,6 +25,21 @@ TestHelpers.commonWidgetTests( "sortable", {
2625
scrollSpeed:20,
2726
scope:"default",
2827
tolerance:"intersect",
29-
zIndex:1000
28+
zIndex:1000,
29+
30+
// callbacks
31+
activate:null,
32+
beforeStop:null,
33+
change:null,
34+
create:null,
35+
deactivate:null,
36+
out:null,
37+
over:null,
38+
receive:null,
39+
remove:null,
40+
sort:null,
41+
start:null,
42+
stop:null,
43+
update:null
3044
}
3145
});

‎ui/jquery.ui.draggable.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ $.widget("ui.draggable", $.ui.mouse, {
4242
snapMode:"both",
4343
snapTolerance:20,
4444
stack:false,
45-
zIndex:false
45+
zIndex:false,
46+
47+
// callbacks
48+
drag:null,
49+
start:null,
50+
stop:null
4651
},
4752
_create:function(){
4853

‎ui/jquery.ui.droppable.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,14 @@ $.widget("ui.droppable", {
3030
greedy:false,
3131
hoverClass:false,
3232
scope:"default",
33-
tolerance:"intersect"
33+
tolerance:"intersect",
34+
35+
// callbacks
36+
activate:null,
37+
deactivate:null,
38+
drop:null,
39+
out:null,
40+
over:null
3441
},
3542
_create:function(){
3643

‎ui/jquery.ui.resizable.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,12 @@ $.widget("ui.resizable", $.ui.mouse, {
4343
minHeight:10,
4444
minWidth:10,
4545
// See #7960
46-
zIndex:90
46+
zIndex:90,
47+
48+
// callbacks
49+
resize:null,
50+
start:null,
51+
stop:null
4752
},
4853
_create:function(){
4954

‎ui/jquery.ui.selectable.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ $.widget("ui.selectable", $.ui.mouse, {
2222
autoRefresh:true,
2323
distance:0,
2424
filter:"*",
25-
tolerance:"touch"
25+
tolerance:"touch",
26+
27+
// callbacks
28+
selected:null,
29+
selecting:null,
30+
start:null,
31+
stop:null,
32+
unselected:null,
33+
unselecting:null
2634
},
2735
_create:function(){
2836
varselectees,

‎ui/jquery.ui.sortable.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,21 @@ $.widget("ui.sortable", $.ui.mouse, {
4747
scrollSpeed:20,
4848
scope:"default",
4949
tolerance:"intersect",
50-
zIndex:1000
50+
zIndex:1000,
51+
52+
// callbacks
53+
activate:null,
54+
beforeStop:null,
55+
change:null,
56+
deactivate:null,
57+
out:null,
58+
over:null,
59+
receive:null,
60+
remove:null,
61+
sort:null,
62+
start:null,
63+
stop:null,
64+
update:null
5165
},
5266
_create:function(){
5367

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp