[Pkg-javascript-commits] [backbone] 198/281: Fixes #629, documents how easy it is to make event dispatching objects.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:12 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag 0.9.0
in repository backbone.

commit 9c62b26ef0fe742fab3622ba7948a7b4bb234973
Author: Jeremy Ashkenas <jashkenas at gmail.com>
Date:   Fri Jan 13 16:26:05 2012 -0500

    Fixes #629, documents how easy it is to make event dispatching objects.
---
 index.html | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/index.html b/index.html
index 2f69a05..618bae6 100644
--- a/index.html
+++ b/index.html
@@ -446,6 +446,11 @@ object.bind("alert", function(msg) {
 object.trigger("alert", "an event");
 </pre>
 
+    <p>
+      For example, to make a handy event dispatcher that can coordinate events
+      among different areas of your application: <tt>var dispatcher = _.clone(Backbone.Events)</tt>
+    </p>
+
     <p id="Events-bind">
       <b class="header">bind</b><code>object.bind(event, callback, [context])</code>
       <br />

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/backbone.git



More information about the Pkg-javascript-commits mailing list