Hi I have a problem,
When I add dynamiclly commands like this:
var commands = [];
var command = new WinJS.UI.MenuCommand(null, { id: counter, label: "label" });
commands.push(command);
var menuHeader = element.querySelector("#menuHeader").winControl;
menuHeader.commands = commands;
ofcourse the html control of the menu look like this:
<div id="menuHeader" data-win-control="WinJS.UI.Menu" />
On the first time I arrive to this page I get the menu works perfectlly but when go to anthoer page and then coem back the items sudanlly disappear
and not show as needed the command by the way follow the debug are there...
Any Ideas?