()
| 1138 | }); |
| 1139 | } else { |
| 1140 | let _appendNode = function() { |
| 1141 | __ctx.t.append(__ctx.i, _new).then( |
| 1142 | (new_item) => { |
| 1143 | __ctx.t.openPath(new_item); |
| 1144 | __ctx.t.select(new_item); |
| 1145 | if (typeof(__ctx?.o?.success) == 'function') { |
| 1146 | __ctx.o.success.apply(__ctx.t, [__ctx.i, _old, _new]); |
| 1147 | } |
| 1148 | }, |
| 1149 | () => { |
| 1150 | console.warn('Failed to append...', arguments); |
| 1151 | if (typeof(__ctx?.o?.fail) == 'function') { |
| 1152 | __ctx.o.fail.apply(__ctx.t, [__ctx.i, _old, _new]); |
| 1153 | } |
| 1154 | }, |
| 1155 | ); |
| 1156 | }; |
| 1157 | |
| 1158 | // If the current node's inode is false |
| 1159 | if (__ctx.i && !__ctx.t.isInode(__ctx.i)) { |
no test coverage detected