Skip to content
Browse files

fix error binding unknown events

  • Loading branch information...
1 parent 218bb1e commit 0744952012b4eb42d747ad2e44c73e7b49d4abb7 @marianoguerra committed Jul 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jquery.lego.js
View
2 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);
}

0 comments on commit 0744952

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