tonylukasavage/pathmenu.js — Issue #2: Icon clicks need to fire menu events
Author: tonylukasavage
Created: 2011-12-19 00:48:12+00:00
State: open

### Summary

When icons from the pathmenu.js menu are clicked, an event should be fired from the menu. Encourage loose coupling.

### Proposed Example Usage

```javascript
var menu = require('/path').createMenu();
menu.addEventListener('iconClick', function(e) {
// fired when an icon is clicked.
// e.index should have the index of the clicked icon
});
```