mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
zjquery: Implement empty function for when there is no argument.
This commit is contained in:
@@ -171,7 +171,12 @@ exports.make_new_elem = function (selector, opts) {
|
||||
selector: selector,
|
||||
};
|
||||
},
|
||||
empty: noop,
|
||||
empty: function (arg) {
|
||||
if (arg === undefined) {
|
||||
find_results.clear();
|
||||
}
|
||||
return self;
|
||||
},
|
||||
eq: function () {
|
||||
return self;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user