mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +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);
|
attrs.del(name);
|
||||||
return self.wrapper;
|
return self.wrapper;
|
||||||
},
|
},
|
||||||
remove_child: function (child_selector) {
|
|
||||||
children.del(child_selector);
|
|
||||||
},
|
|
||||||
removeClass: function (class_name) {
|
removeClass: function (class_name) {
|
||||||
classes.del(class_name);
|
classes.del(class_name);
|
||||||
return self.wrapper;
|
return self.wrapper;
|
||||||
},
|
},
|
||||||
remove: function () {
|
remove: function () {
|
||||||
if (my_parent) {
|
|
||||||
my_parent.remove_child(selector);
|
|
||||||
}
|
|
||||||
return self.wrapper;
|
return self.wrapper;
|
||||||
},
|
},
|
||||||
removeData: noop,
|
removeData: noop,
|
||||||
|
|||||||
Reference in New Issue
Block a user