mirror of
https://github.com/jashkenas/backbone.git
synced 2026-01-23 13:58:06 -05:00
Merge branch 'master' of https://github.com/TMaYaD/backbone
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user