title: Knockout k.apply is not a function
body: <p>I'm trying to hide a div with a particular animation using Knockout, and it works but I'm getting this error:</p>
  
  <blockquote>
    <p>knockout-3.4.2.js:90 Uncaught TypeError: k.apply is not a function
        at HTMLDivElement.</p>
  </blockquote>
  
  <p>This is the HTML I'm using:</p>
  
  <pre><code>&lt;div id="wikipedia-text" data-bind="click: hideWikipedia($element)"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>And the function I'm calling:</p>
  
  <pre><code>hideWikipedia = async function(wikiText) {
      wikiText.style.animationName = "goUp";
      await sleep(1000); // The animation lasts 1s, this avoids to hide the div while the animation is going
      wikiText.style.display = "none";
  };
  </code></pre>
  
  <p>Can someone help me to understand what's the problem?</p>