Permalink
Browse files

Release 0.0.1

  • Loading branch information...
1 parent 97c7088 commit af4243cf7d254eeb922750c810c06a83f585b704 @timoxley committed Oct 15, 2012
Showing with 7 additions and 4 deletions.
  1. +6 −3 Readme.md
  2. +1 −1 component.json
View
@@ -1,6 +1,6 @@
# backbone-events
-### Backbone's Events API ported to a component.
+### Backbone.Events API ported to a component.
Events is a module that can be mixed in to any object, giving the object the ability to bind and trigger custom named events. Events do not have to be declared before they are bound, and may take passed arguments.
@@ -15,9 +15,12 @@ website](http://backbonejs.org/).
```js
+
+var BackboneEvents = require('timoxley/backbone-events')
+
var object = {};
-_.extend(object, Backbone.Events);
+_.extend(object, BackboneEvents);
object.on("alert", function(msg) {
alert("Triggered " + msg);
@@ -75,4 +78,4 @@ Trigger callbacks for the given event, or space-delimited list of events. Subseq
## License
-MIT
+[MIT](https://github.com/timoxley/backbone-events/blob/master/LICENSE)
View
@@ -1,7 +1,7 @@
{
"name": "backbone-events",
"repo": "timoxley/backbone-events",
- "description": "Backbone Events API emulation on component/emitter",
+ "description": "Port of Backbone.Events API",
"version": "0.0.1",
"keywords": [],
"dependencies": {

0 comments on commit af4243c

Please sign in to comment.