mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
zjquery: Remove broken code related to remove().
The logic to remove ourself from the parent's children wasn't correct.
This commit is contained in:
@@ -176,17 +176,11 @@ exports.make_zjquery = function () {
|
||||
attrs.del(name);
|
||||
return self.wrapper;
|
||||
},
|
||||
remove_child: function (child_selector) {
|
||||
children.del(child_selector);
|
||||
},
|
||||
removeClass: function (class_name) {
|
||||
classes.del(class_name);
|
||||
return self.wrapper;
|
||||
},
|
||||
remove: function () {
|
||||
if (my_parent) {
|
||||
my_parent.remove_child(selector);
|
||||
}
|
||||
return self.wrapper;
|
||||
},
|
||||
removeData: noop,
|
||||
|
||||
Reference in New Issue
Block a user