zjquery: Remove bogus remove().

This commit is contained in:
Steve Howell
2021-02-25 15:07:04 +00:00
committed by Steve Howell
parent bd034f5767
commit 5437a16602
10 changed files with 52 additions and 4 deletions

View File

@@ -342,7 +342,14 @@ function make_new_elem(selector, opts) {
return self;
},
remove() {
return self;
throw new Error(`
We don't support remove in zjuery.
You can do $(...).remove = ... if necessary.
But you are probably writing too deep a test
for node testing.
`);
},
removeData: noop,
replaceWith() {