Skip to content
Browse files

Fix triggering in selectors

  • Loading branch information...
1 parent 0a7ba17 commit 089928230805fcfb8f31e370089b44b8da1862d7 @indutny indutny committed with Chris Anderson Dec 14, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/jquery.evently.js
View
6 lib/jquery.evently.js
@@ -121,6 +121,12 @@ function $$(node) {
var f = evfun(h, name);
if (typeof f == "function") {
elem.bind(name, {args:args}, f);
+ } else if (typeof f == "string") {
+ // just trigger another event
+ elem.bind(name, {args:args}, function(e) {
+ $(this).trigger(f);
+ return false;
+ });
} else {
// an evently widget
elem.bind(name, {args:args}, function() {

0 comments on commit 0899282

Please sign in to comment.
Something went wrong with that request. Please try again.