Return the jquery object for el when this.$ is called without argument

This commit is contained in:
TMaYaD
2011-11-24 02:38:08 +05:30
parent 1332246b8f
commit 2d2198c354

View File

@@ -913,7 +913,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`.