[Pkg-javascript-commits] [backbone] 154/281: adding docs for events function

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 17:02:07 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 cd18a968d2ad87a8e6c4b09bf9938cda0acb9f90
Author: Zack Owens <ztowens at indiana.edu>
Date:   Sat Jan 7 10:19:18 2012 -0500

    adding docs for events function
---
 backbone.js | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/backbone.js b/backbone.js
index f07f80f..99a1d7d 100644
--- a/backbone.js
+++ b/backbone.js
@@ -938,6 +938,13 @@
     // Omitting the selector binds the event to `this.el`.
     // This only works for delegate-able events: not `focus`, `blur`, and
     // not `change`, `submit`, and `reset` in Internet Explorer.
+    //
+    // A function may also be returned:
+    //  function() { 
+    //      return {
+    //          'mousedown .title': this.titleMouseDown
+    //      };
+    //  }
     delegateEvents : function(events) {
       if (!(events || (events = getValue(this, 'events')))) return;
       if (_.isFunction(events)) events = _.bind(events, this)(); 

-- 
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