vakata / jstree

jquery tree plugin
http://jstree.com
MIT License
5.15k stars 1.38k forks source link

Syntax error/typo in delete_node-Method in V3.3.12 #2665

Closed SKPFCW closed 1 year ago

SKPFCW commented 2 years ago

HI!

within the delete_node-Method there is a typo in triger -> trigger:

Instead of this.get_node(this._model.data[$.jstree.root].children[0], true).children('.jstree-anchor').triger('focus');

it should be this.get_node(this._model.data[$.jstree.root].children[0], true).children('.jstree-anchor').trigger('focus');

Beside this, eslint marks quite a few errors in your code.

image

vakata commented 1 year ago

This will be fixed in 3.3.13 later today (it is already fixed, but there has not been a version released)