addNewSeparator in dhtmlxmenu.js lack pos parameter

hi, in dhtmlxmenu.js, function addNewSeparator 's parameters is wrong, lack pos parameter.

  • @desc: add a new separator
  • @param: nextToId - id of the element after which a new separator will be inserted
  • @param: itemId - id of a new separator
  • @type: public
    dhtmlXMenuObject.prototype.addNewSeparator = function(nextToId, itemId) {

should be:
dhtmlXMenuObject.prototype.addNewSeparator = function(nextToId, pos, itemId) {



We will check how it can be improved.
For now you can use nextToId parameter instead of pos, just provide the ID of item after each separator need to be added.

thanks! i see.