File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -291,8 +291,12 @@ export class Task {
291
291
}
292
292
293
293
/**
294
- * Toggles this task and returns the resulting task(s). If the
295
- * task is not recurring, it will return `[toggled]`.
294
+ * Toggles this task and returns the resulting task(s).
295
+ *
296
+ * Use this method if you need to know which is the original (completed)
297
+ * task and which is the new recurrence.
298
+ *
299
+ * If the task is not recurring, it will return `[toggled]`.
296
300
*
297
301
* Toggling can result in more than one returned task in the case of
298
302
* recurrence. In this case, the toggled task will be returned
@@ -361,8 +365,13 @@ export class Task {
361
365
}
362
366
363
367
/**
364
- * Toggles this task and returns the resulting task(s). If the
365
- * task is not recurring, it will return `[toggled]`.
368
+ * Toggles this task and returns the resulting task(s).
369
+ *
370
+ * Use this method if the updated task(s) are to be saved,
371
+ * as this honours the user setting to control the order
372
+ * the tasks should be saved in.
373
+ *
374
+ * If the task is not recurring, it will return `[toggled]`.
366
375
*
367
376
* Toggling can result in more than one returned task in the case of
368
377
* recurrence. In this case, the toggled task will be returned in
You can’t perform that action at this time.
0 commit comments