Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If this </p> <pre><code>Object search-key=Object $family=Object </code></pre> <p>is produced by: </p> <pre><code>console.log(this.watches); </code></pre> <p>Then this is <em>obviously</em> not just one pass. </p> <p>This is not to say that it's in a loop or anything, just that this code is being called more than once.</p> <p>One might say </p> <blockquote> <p>why is search-key showing up only once then?</p> </blockquote> <p>The answer is: we don't really know because we don't see all the code.</p> <p>The most likely scenario is that <code>key</code> in the second time is the empty string</p> <p>try <code>console.log("")</code> it prints nothing</p> <p>also try this:</p> <pre><code>&gt;&gt;&gt; console.log(""); console.log(1); console.log(""); console.log(2) </code></pre> <p>copy the output and paste it in any text editor (i.e. paste it as plain text)</p> <pre><code>1 2 </code></pre> <p>it <em>looks like</em> there was nothing between 1 and 2, even though the console <em>does</em> show a cue of an empty line, but this cue disappears when you copy-paste the output as plain text.</p> <p><strong>UPDATE</strong></p> <p>well, if this process is initiated by the call to <code>WCHistory.implement(..)</code>, and this method is being called twice, then obviously, the second time, for some reason, the key is empty.</p> <p><strong>Try this</strong></p> <p>Change <code>console.log(key)</code> to <code>console.log("key: " + key)</code> and you should see something like this:</p> <pre><code>key: search-key found it Object search-key=Object $family=Object key: whhhat? Object search-key=Object $family=Object </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload