cocoon-vanilla-js icon indicating copy to clipboard operation
cocoon-vanilla-js copied to clipboard

function of finding a node

Open nir0 opened this issue 3 years ago • 0 comments

in the code we got:

  if(typeof insertionNode === 'function') {
    if(insertionTraversal) {
      console.warn('association-insertion-traversal is ignored, because association-insertion-node is given as a function.');
    }
    return insertionNode(btn);
  }

how exactly do you pass a function to this data attribute?

i've tried multiple times, it always stores function as a string.

nir0 avatar Jun 11 '21 12:06 nir0