title: indexOf causing error in IE; working in other browsers
body: <p>EDIT: I'm super confused. I have a local copy of the webpage, in which I added the 'indexOf' function to the javascript file. This page is working. However, the page on the live site, which I have pushed my changes to, is still getting the indexOf error. Furthermore, another page on the site that uses the exact same script is not getting any errors. There shouldn't be a problem with giftFeatures[giftB], because according to the debugger it <em>is</em> an array. </p>
  
  <p><a href="http://giftplanning.wheatoncollege.edu/how-you-can-give/compare-gifts" rel="nofollow">This is a URL for the problem page</a></p>
  
  <p><a href="http://advocate.dev.pgdonors.org/how-you-can-give/compare-gifts" rel="nofollow">This is a page that uses the exact same script with no errors</a></p>
  
  <p>What is the difference between those two pages, why does the second work but the first doesn't? This is driving me crazy. </p>
  
  <hr>
  
  <p>I have a script attached to a page that is working in all browsers except IE (using IE11). Here's the method that's not working:</p>
  
  <pre><code>  buildComparisonData: function() {
    this.comparisonData = [];
    var giftA = this.selectedGifts[0];
    var giftB = this.selectedGifts[1];
    if(this.selectedGifts.length == 3)
     var giftC = this.selectedGifts[2];
  
    for(var i = 0; i &lt; this.config.giftFeatureLabels.length; i++) {
      var label = this.config.giftFeatureLabels[i].feature;
      var checkimg = '&lt;img src="https://www.giftcalcs.com/sites/all/modules/custom/pgc_giftcompare/check-mark.png"&gt;';
      var giftBChecked = this.config.giftFeatures[giftB].indexOf(i) &lt; 0 ? '' : checkimg;
      var giftAChecked = this.config.giftFeatures[giftA].indexOf(i) &lt; 0 ? '' : checkimg;
      if(this.selectedGifts.length == 3)
       var giftCChecked = this.config.giftFeatures[giftC].indexOf(i) &lt; 0 ? '&amp;nbsp;' : checkimg;
  
      var row = {
        label: label,
        giftA: giftAChecked,
        giftB: giftBChecked
      };
      if(this.selectedGifts.length == 3)
        row.giftC = giftCChecked;
  
      this.comparisonData.push(row);
  
      var comparisonLabels = {};
      comparisonLabels.giftA = this.getGiftLabel(this.selectedGifts[0]);
      comparisonLabels.giftB = this.getGiftLabel(this.selectedGifts[1]);
      if(this.selectedGifts.length == 3)
        comparisonLabels.giftC = this.getGiftLabel(this.selectedGifts[2]);
  
      this.comparisonLabels = comparisonLabels;
    }
  </code></pre>
  
  <p>the line where it breaks is</p>
  
  <pre><code>var giftBChecked = this.config.giftFeatures[giftB].indexOf(i) &lt; 0 ? '' : checkimg;
  </code></pre>
  
  <p>It says "Object doesn't support property or method 'indexOf'</p>
  
  <p>The script has no errors in Chrome and Firefox. I'm able to get indexOf on giftFeatures[giftB], but not in IE.</p>