zjquery: Implement empty function for when there is no argument.

This commit is contained in:
Shubham Dhama 2018-07-03 14:33:24 +05:30 committed by showell
parent 617c79545a
commit 98e6b287b5
1 changed files with 6 additions and 1 deletions

View File

@ -171,7 +171,12 @@ exports.make_new_elem = function (selector, opts) {
selector: selector, selector: selector,
}; };
}, },
empty: noop, empty: function (arg) {
if (arg === undefined) {
find_results.clear();
}
return self;
},
eq: function () { eq: function () {
return self; return self;
}, },