Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created December 11, 2011 16:24
Show Gist options
  • Select an option

  • Save Raynos/1461375 to your computer and use it in GitHub Desktop.

Select an option

Save Raynos/1461375 to your computer and use it in GitHub Desktop.
Cindela UI drafting, brainstorming
// Require the Cin app framework.
var EventPublisher = require('event::EventPublisher'),
Base = require('ui::Base');
var Button = Base.make(EventPublisher, {
enable: function _enable() {
// ...
this.emit('enabled');
}
});
module.exports = Button;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment