mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 04:53:36 +00:00
zjquery: Add replaceWith() and selector.location.
This commit is contained in:
committed by
Tim Abbott
parent
2e7f215f44
commit
703351288a
@@ -230,6 +230,9 @@ exports.make_zjquery = function (opts) {
|
||||
return self;
|
||||
},
|
||||
removeData: noop,
|
||||
replaceWith: function () {
|
||||
return self;
|
||||
},
|
||||
select: function (arg) {
|
||||
generic_event('select', arg);
|
||||
return self;
|
||||
@@ -345,6 +348,7 @@ exports.make_zjquery = function (opts) {
|
||||
(selector === 'document-stub') ||
|
||||
(selector === 'body') ||
|
||||
(selector === 'html') ||
|
||||
(selector.location) ||
|
||||
(selector.indexOf('#') >= 0) ||
|
||||
(selector.indexOf('.') >= 0) ||
|
||||
(selector.indexOf('[') >= 0 && selector.indexOf(']') >= selector.indexOf('['));
|
||||
|
||||
Reference in New Issue
Block a user