0.0.1 • Published 11 years ago
capsulated v0.0.1
Capsule
Provides a widget with a view and logic.
Getting started
- Create a new capsule
var myCapsule = new Capsule();Each Capsule can trigger events, where events can be added through .on and removed by using the .off method. An example would be:
myCapsule.on('test', function() {
console.log('Do something');
});
myCapsule.trigger('test');- Use the capsule
License
This is public domain. If that does not work for you, you can alternatively use the MIT license.
0.0.1
11 years ago
