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) {
…
Thanks.