You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm adding a node (using developer tools) to console div, getting the following:
(#<JS-OBJECT [object MutationObserver]>)
So, the lambda is called with just one argument, but MutationObserver callback should receive two. The first one is not passed to the lambda.
In JS console the code works fine, both args are passed:
(defunnew-observer (fun)
"Constructor for instantiating new DOM mutation observers"
(#j:make_Instance #j:window "MutationObserver"
(lambda (mutations observer)
;; mutations - array of MutationRecord;; observer - some mutant observer
(funcall fun mutations))))
I'm trying to use
MutationObserver
object to catch a DOM change using the following code (can be reproduced in JSCL console):When I'm adding a node (using developer tools) to
console
div, getting the following:So, the lambda is called with just one argument, but
MutationObserver
callback should receive two. The first one is not passed to the lambda.In JS console the code works fine, both args are passed:
The text was updated successfully, but these errors were encountered: