title: Meteor.startup on the client
body: <p>When using the following code on the client side, why is the variable <code>init</code> in <code>if(init)</code> evaluated to be <code>true</code> even though it comes before <code>init = true</code> and no new documents are added to the <code>Orders</code> collection? This results in the <code>query.observe</code> returning all documents returned by the query, not just newly added ones.</p>
  
  <p>This behavior is not observed on the server side, which only executes the <code>console.log</code> when new documents are added.</p>
  
  <pre><code>Meteor.startup(function() {
  
      var init = false
      var query = Orders.find()
      var handle = query.observe({
          added: function (doc) {
              if(init)
                  console.log(doc)
          }
      });
  
      init = true
  
  })
  </code></pre>