title: Resetting / changing the offset of bootstrap affix
body: <p>How do I change the offset of Affix (Twitter Bootstrap 3) to another value?</p>
  
  <p>When I tried to call the method twice like this, the second one seems to be ignored and does not have any effect:</p>
  
  <pre><code>$('#navbar-main').affix({ offset: 100});
  $('#navbar-main').affix({ offset: 200}); // ---&gt; the offset will not change to 200px
  </code></pre>
  
  <p>Resetting the <code>.affix</code> callback before calling <code>affix</code> the second time didn't help either:</p>
  
  <pre><code>$('#navbar-main').affix({ offset: 100});
  $(window).off('.affix');
  $('#navbar-main').affix({ offset: 200}); // ---&gt; the offset will not change to 200px
  </code></pre>