This commit is contained in:
Jeremy Ashkenas
2011-11-23 17:03:44 -05:00

View File

@@ -877,7 +877,11 @@
// This should be prefered to global lookups, if you're dealing with
// a specific view.
var selectorDelegate = function(selector) {
return $(selector, this.el);
if (typeof selector == 'undefined') {
return $(this.el);
} else {
return $(selector, this.el);
};
};
// Cached regex to split keys for `delegate`.