primefaces / primeui

Rich set of javascript-css only widgets
http://www.primefaces.org/primeui
278 stars 125 forks source link

Functions declared twice in menu.js #284

Open SuperPat45 opened 6 years ago

SuperPat45 commented 6 years ago

In menu.js theses functions are declared twice:

        _removeAsExpanded: function(element) {
            var id = element.attr('id');

            this.expandedNodes = $.grep(this.expandedNodes, function(value) {
                return value != id;
            });

            this._saveState();
        },

        _addAsExpanded: function(element) {
            this.expandedNodes.push(element.attr('id'));

            this._saveState();
        },

This prevent Google closure compiler to minimify this file.