Skip to content

Commit d76c4a6

Browse files
committed
DragState.getData should not be static
1 parent 5d76855 commit d76c4a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/dragdrop/DragManager.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,12 @@ export class DragState {
8080
_dataScope = scope;
8181
_data = data;
8282
}
83+
getData(field: string, scope?: any) {
84+
if (scope === _dataScope && _data) {
85+
return _data[field];
86+
}
87+
return null;
88+
}
8389

8490
static getData(field: string, scope?: any) {
8591
if (scope === _dataScope && _data) {

0 commit comments

Comments
 (0)