From 0744952012b4eb42d747ad2e44c73e7b49d4abb7 Mon Sep 17 00:00:00 2001 From: Mariano Guerra Date: Thu, 26 Jul 2012 15:20:57 +0200 Subject: [PATCH] fix error binding unknown events --- src/jquery.lego.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jquery.lego.js b/src/jquery.lego.js index cb7f382..660060d 100644 --- a/src/jquery.lego.js +++ b/src/jquery.lego.js @@ -99,7 +99,7 @@ if ($.inArray(attr, events) !== -1) { $tag[attr](options[key]); } else if ($.isFunction(options[key])) { - $.bind(attr, options[key]); + $tag.bind(attr, options[key]); } else { $.lego.error("unknown internal attribute " + attr); }