Removing subtasks


#1

Hi

I want to remove some of the subtasks appearing in the popup panel. I checked that these tasks are getting created from PopupMenu.js file in createntry(). But how do i remove some of the tasks appearing here? help would be appreciated

PopupMenu.prototype._createEntry = function(entry) {

if (!entry.id) {
throw new Error (‘every entry must have the id property set’);
}

var entryContainer = domify(’

’),
entryClasses = domClasses(entryContainer);

entryClasses.add(‘entry’);

if (entry.className) {
entryClasses.add(entry.className);
}

domAttr(entryContainer, DATA_REF, entry.id);

if (entry.label) {
var label = domify(’’);
label.textContent = entry.label;
entryContainer.appendChild(label);
}

if (entry.imageUrl) {
entryContainer.appendChild(domify(’’));
}

if (entry.active === true) {
entryClasses.add(‘active’);
}

if (entry.disabled === true) {
entryClasses.add(‘disabled’);
}

if (entry.title) {
entryContainer.title = entry.title;
}

return entryContainer;
};