ajaxorg/apf — Issue #28: the `prop.checked` event is called many times
Author: sergi
Created: 2011-11-20 20:50:16+00:00
State: open

Putting a new checked menuItem in the menu and listening to its `prop.checked` event, causes the latter to be called multiple times (8 in my case). The code to reproduce is simple:

```javascript
var menuItem = ide.mnuEdit.appendChild(new apf.item({
caption: "Vim mode",
type: "check",
checked : "[{require('ext/settings/settings').model}::editors/code/@vimmode]",
onclick: settings.save
}));
this.nodes.push(ide.mnuEdit.appendChild(menuItem);

var self = this;
menuItem.addEventListener("prop.checked", function(e) {
console.log("prop.checked") // This gets printed 8 times or so
});
```