File tree 2 files changed +22
-9
lines changed
2 files changed +22
-9
lines changed Original file line number Diff line number Diff line change
1
+ # top-most EditorConfig file
2
+ root = true
3
+
4
+ [* ]
5
+ insert_final_newline = false
6
+ indent_style = space
7
+ indent_size = 2
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ end_of_line = lf
Original file line number Diff line number Diff line change @@ -4,14 +4,17 @@ open MutationObserver
4
4
let el = document -> Document .createElement ("strong" )
5
5
let observer : t = MutationObserver .make ((_records , _observer ) => ())
6
6
7
- let _ = observer -> MutationObserver .observe (el , {
8
- "subtree" : true ,
9
- "childList" : true ,
10
- "attributes" : true ,
11
- "attributeOldValue" : true ,
12
- "characterData" : true ,
13
- "characterDataOldValue" : true ,
14
- })
7
+ let _ = observer -> MutationObserver .observe (
8
+ el ,
9
+ {
10
+ "subtree" : true ,
11
+ "childList" : true ,
12
+ "attributes" : true ,
13
+ "attributeOldValue" : true ,
14
+ "characterData" : true ,
15
+ "characterDataOldValue" : true ,
16
+ },
17
+ )
15
18
16
19
let _ = observer -> MutationObserver .disconnect
17
20
let records : array <Dom .mutationRecord > = observer -> MutationObserver .takeRecords
@@ -28,4 +31,4 @@ let recordPrevSibling: option<Dom.node> = aRecord->previousSibling
28
31
let recordNextSibling : option <Dom .node > = aRecord -> nextSibling
29
32
let recordAttributeName : option <string > = aRecord -> attributeName
30
33
let recordAttributeNamespace : option <string > = aRecord -> attributeNamespace
31
- let recordOldValue : option <string > = aRecord -> oldValue
34
+ let recordOldValue : option <string > = aRecord -> oldValue
You can’t perform that action at this time.
0 commit comments