zjquery: Add replaceWith() and selector.location.

This commit is contained in:
Rohitt Vashishtha
2018-04-13 12:20:21 +05:30
committed by Tim Abbott
parent 2e7f215f44
commit 703351288a

View File

@@ -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('['));