-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrefactor.js
More file actions
23 lines (23 loc) · 862 Bytes
/
refactor.js
File metadata and controls
23 lines (23 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
if (!task.hasOwnProperty('parentId')) {
return false; // skip
}
if (task.parentId != parentId) {
if (task.hasOwnProperty('deadlineGroup')) {
var dlG = task.deadlineGroup;
if (task.hasOwnProperty('deadlineParent')) {
if (dlG != task.deadlineParent) {
return false; // skip
}
} else {
return false; // skip
}
} else {
return false; // skip
}
}
if (!task.hasOwnProperty('end')) {
return false; // skip
}
if (!$.isFunction(task.end)) {
return false; // skip
}