Skip to content

Instantly share code, notes, and snippets.

@indexzero
Created June 6, 2011 01:52
Show Gist options
  • Save indexzero/1009632 to your computer and use it in GitHub Desktop.
Save indexzero/1009632 to your computer and use it in GitHub Desktop.
A back of the napkin fix for haibu issue #18
Drone.prototype.list = function () {
var self = this,
appList = {};
Object.keys(this.apps).forEach(function (key) {
appList[key] = {
app: self.apps[key].app,
drones: self.apps[key].drones
}
});
return appList;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment