Skip to content

Commit a2565a7

Browse files
krichprollschsjorsdonkers
authored andcommitted
range: add detach function
1 parent 947d01a commit a2565a7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/browser/dom/range.zig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ pub const Range = struct {
126126

127127
self.proto.updateCollapsed();
128128
}
129+
130+
// The Range.detach() method does nothing. It used to disable the Range
131+
// object and enable the browser to release associated resources. The
132+
// method has been kept for compatibility.
133+
// https://developer.mozilla.org/en-US/docs/Web/API/Range/detach
134+
pub fn _detach(_: *Range) void {}
129135
};
130136

131137
const testing = @import("../../testing.zig");

0 commit comments

Comments
 (0)