fix setNoteToParent and deprecate it

This commit is contained in:
zadam
2019-11-10 19:29:51 +01:00
parent 0837cabb41
commit dea5195223
3 changed files with 20 additions and 8 deletions

View File

@@ -282,9 +282,10 @@ function BackendScriptApi(currentNote, apiParams) {
* This method looks similar to toggleNoteInParent() but differs because we're looking up branch by prefix.
*
* @method
* @deprecated - this method is pretty confusing and serves specialized purpose only
* @param {string} noteId
* @param {string} prefix
* @param {string} [parentNoteId]
* @param {string|null} parentNoteId
*/
this.setNoteToParent = treeService.setNoteToParent;