mirror of https://github.com/zulip/zulip.git
zjquery: Implement empty function for when there is no argument.
This commit is contained in:
parent
617c79545a
commit
98e6b287b5
|
@ -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;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue