IE10 fixes
IE10 fixes

Makes the test suite run again.

Main problem was an accidentally shadowed variable that was only
used on IE.

Closes #1607

hackmdio/CodeMirror,bluesh55/CodeMirror,qiankun007/CodeMirror,MarcelGerber/CodeMirror,rrandom/CodeMirror,ejgallego/CodeMirror,webida/CodeMirror,SidPresse/CodeMirror,EasonYi/CodeMirror,webida/CodeMirror,ashmind/CodeMirror,grzegorzmazur/CodeMirror,amshali/CodeMirror,fpco/codemirror,ashmind/CodeMirror,bocharsky-bw/CodeMirror,TechnicalPursuit/CodeMirror,sanyaade-iot/CodeMirror,sourcelair/CodeMirror,INTELOGIE/CodeMirror,sekcheong/CodeMirror,flyskyko/CodeMirror,TDaglis/CodeMirror,hackmdio/CodeMirror,karthikeyansam/CodeMirror,gkoberger/CodeMirror,anthonygego/CodeMirror,rrandom/CodeMirror,karevn/CodeMirror,ashmind/CodeMirror,Allenice/CodeMirror,Icenium/CodeMirror,vincentwoo/CodeMirror,sgoo/CodeMirror,fmoliveira/CodeMirror,apatawari/CodeMirror,schanzer/CodeMirror,mizchi/CodeMirror,michaelerobertsjr/CodeMirror,mihailik/CodeMirror,manderson23/CodeMirror,pinbe/CodeMirror,loopspace/CodeMirror,cintiamh/CodeMirror,systay/CodeMirror,nightwing/CodeMirror,kolya-ay/CodeMirror,symbla/CodeMirror,melpon/CodeMirror,nawroth/CodeMirror,NeZaMy/CodeMirror2,pinbe/CodeMirror,increpare/CodeMirror,vincentwoo/CodeMirror,dudb/CodeMirror,manderson23/CodeMirror,NumbersInternational/CodeMirror,schanzer/CodeMirror,pinbe/CodeMirror,NeZaMy/CodeMirror2,xeronith/CodeMirror,xeronith/CodeMirror,fivetran/CodeMirror,mtaran-google/CodeMirror,AlanWasTaken/codemirror,kerabromsmu/CodeMirror,dperetti/CodeMirror,mightyguava/CodeMirror,pabloferz/CodeMirror,joshterrell805-historic/CodeMirror,axter/CodeMirror,ficristo/CodeMirror,namin/CodeMirror,supriyantomaftuh/CodeMirror,ejgallego/CodeMirror,AlanWasTaken/codemirror,MarcelGerber/CodeMirror,ssxxue/CodeMirror,cintiamh/CodeMirror,Aliccer/CodeMirror,manderson23/CodeMirror,kerabromsmu/CodeMirror,mihailik/CodeMirror,jessegrosjean/CodeMirror,hackmdio/CodeMirror,tpphu/CodeMirror,philuchansky/CodeMirror,dbarnett/CodeMirror,Jisuanke/CodeMirror,notepadqq/CodeMirror,symbla/CodeMirror,Navaneethsen/CodeMirror,DustinH/CodeMirror,bocharsky-bw/CodeMirror,sekcheong/CodeMirror,kk9599/CodeMirror,trumanliu/CodeMirror,kangkot/CodeMirror,SidPresse/CodeMirror,d0liver/CodeMirror,shiren/CodeMirror,KamranMackey/CodeMirror,morrisonwudi/CodeMirror,qweasd1/CodeMirror,kevinushey/CodeMirror,belph/CodeMirror,apatawari/CodeMirror,vanloswang/CodeMirror,notepadqq/CodeMirror,cben/CodeMirror,InternetGuru/CodeMirror,rustemferreira/CodeMirror,nawroth/CodeMirror,jochenberger/CodeMirror,increpare/CodeMirror,kuangyeheng/CodeMirror,codio/CodeMirror,DustinH/CodeMirror,alur/CodeMirror,systay/CodeMirror,symbla/CodeMirror,d0liver/CodeMirror,dperetti/CodeMirror,adobe/CodeMirror2,ejgallego/CodeMirror,bocharsky-bw/CodeMirror,sourcelair/CodeMirror,ThebingServices/CodeMirror,bluesh55/CodeMirror,qweasd1/CodeMirror,Navaneethsen/CodeMirror,kk9599/CodeMirror,tpphu/CodeMirror,qiankun007/CodeMirror,dudb/CodeMirror,isdampe/CodeMirror,Dominator008/CodeMirror,loopspace/CodeMirror,trumanliu/CodeMirror,ZombieHippie/CodeMirror,AlanWasTaken/codemirror,GerHobbelt/CodeMirror2,amshali/CodeMirror,sanyaade-iot/CodeMirror,jkaplon/CodeMirror,skylarkcob/CodeMirror,amshali/CodeMirror,matthewbauer/CodeMirror,kevinushey/CodeMirror,KamranMackey/CodeMirror,crazy4chrissi/CodeMirror,supriyantomaftuh/CodeMirror,kangkot/CodeMirror,jpolitz/CodeMirror,sourcelair/CodeMirror,karevn/CodeMirror,cben/CodeMirror,davidpham87/CodeMirror,crazy4chrissi/CodeMirror,jhnesk/CodeMirror,camellhf/CodeMirror,ssxxue/CodeMirror,ThebingServices/CodeMirror,systay/CodeMirror,alur/CodeMirror,alur/CodeMirror,jpolitz/CodeMirror,kuangyeheng/CodeMirror,GerHobbelt/CodeMirror2,jessegrosjean/CodeMirror,matthewbauer/CodeMirror,axter/CodeMirror,dbarnett/CodeMirror,ficristo/CodeMirror,Carreau/CodeMirror,antimatter15/CodeMirror,fmoliveira/CodeMirror,shiren/CodeMirror,bfrohs/CodeMirror,djadmin/CodeMirror,Icenium/CodeMirror,amsul/CodeMirror,camellhf/CodeMirror,adobe/CodeMirror2,abdelouahabb/CodeMirror,grzegorzmazur/CodeMirror,vanloswang/CodeMirror,wingify/CodeMirror,grzegorzmazur/CodeMirror,bgrins/CodeMirror,elisee/CodeMirror,abdelouahabb/CodeMirror,InternetGuru/CodeMirror,agendor/CodeMirror,ksanaforge/CodeMirror,antimatter15/CodeMirror,kuangyeheng/CodeMirror,adobe/CodeMirror2,bluesh55/CodeMirror,xeronith/CodeMirror,isdampe/CodeMirror,skylarkcob/CodeMirror,MarcelGerber/CodeMirror,r7kamura/CodeMirror,wingify/CodeMirror,michaelerobertsjr/CodeMirror,axter/CodeMirror,TechnicalPursuit/CodeMirror,INTELOGIE/CodeMirror,antimatter15/CodeMirror,jayaprabhakar/CodeMirror,notepadqq/CodeMirror,rasata/CodeMirror,isdampe/CodeMirror,fmoliveira/CodeMirror,bfrohs/CodeMirror,rustemferreira/CodeMirror,sekcheong/CodeMirror,TechnicalPursuit/CodeMirror,pjkui/CodeMirror,schanzer/CodeMirror,Dominator008/CodeMirror,thomasjm/CodeMirror,NumbersInternational/CodeMirror,philuchansky/CodeMirror,dbarnett/CodeMirror,bfrohs/CodeMirror,happibum/CodeMirror-main,karthikeyansam/CodeMirror,ksanaforge/CodeMirror,r7kamura/CodeMirror,jkaplon/CodeMirror,codio/CodeMirror,mihailik/CodeMirror,hccampos/CodeMirror,Navaneethsen/CodeMirror,trumanliu/CodeMirror,Aliccer/CodeMirror,mightyguava/CodeMirror,thomasjm/CodeMirror,belph/CodeMirror,anthonygego/CodeMirror,rasata/CodeMirror,webida/CodeMirror,CartoDB/CodeMirror,apatawari/CodeMirror,mtaran-google/CodeMirror,melpon/CodeMirror,ZombieHippie/CodeMirror,sgoo/CodeMirror,buchslava/CodeMirror,morrisonwudi/CodeMirror,nawroth/CodeMirror,wbinnssmith/CodeMirror,EasonYi/CodeMirror,namin/CodeMirror,angelozerr/CodeMirror,supriyantomaftuh/CodeMirror,mizchi/CodeMirror,NeZaMy/CodeMirror2,angelozerr/CodeMirror,bgrins/CodeMirror,crazy4chrissi/CodeMirror,skylarkcob/CodeMirror,karthikeyansam/CodeMirror,pjkui/CodeMirror,happibum/CodeMirror-main,qweasd1/CodeMirror,davidpham87/CodeMirror,Jisuanke/CodeMirror,agendor/CodeMirror,hccampos/CodeMirror,d0liver/CodeMirror,ksanaforge/CodeMirror,ficristo/CodeMirror,qiankun007/CodeMirror,CartoDB/CodeMirror,wingify/CodeMirror,camellhf/CodeMirror,ZombieHippie/CodeMirror,mizchi/CodeMirror,mightyguava/CodeMirror,jayaprabhakar/CodeMirror,InternetGuru/CodeMirror,Allenice/CodeMirror,michaelerobertsjr/CodeMirror,kk9599/CodeMirror,matthewbauer/CodeMirror,bgrins/CodeMirror,davidpham87/CodeMirror,cintiamh/CodeMirror,vanloswang/CodeMirror,dperetti/CodeMirror,djadmin/CodeMirror,kerabromsmu/CodeMirror,mtaran-google/CodeMirror,pabloferz/CodeMirror,flyskyko/CodeMirror,pabloferz/CodeMirror,karevn/CodeMirror,NumbersInternational/CodeMirror,buchslava/CodeMirror,pjkui/CodeMirror,belph/CodeMirror,EasonYi/CodeMirror,jayaprabhakar/CodeMirror,djadmin/CodeMirror,KamranMackey/CodeMirror,nightwing/CodeMirror,Ermlab/CodeMirror,jpolitz/CodeMirror,Allenice/CodeMirror,INTELOGIE/CodeMirror,rustemferreira/CodeMirror,nightwing/CodeMirror,Ermlab/CodeMirror,hccampos/CodeMirror,gkoberger/CodeMirror,jessegrosjean/CodeMirror,increpare/CodeMirror,ThebingServices/CodeMirror,Icenium/CodeMirror,ssxxue/CodeMirror,abdelouahabb/CodeMirror,gkoberger/CodeMirror,morrisonwudi/CodeMirror,fivetran/CodeMirror,jkaplon/CodeMirror,Carreau/CodeMirror,wbinnssmith/CodeMirror,flyskyko/CodeMirror,jhnesk/CodeMirror,joshterrell805-historic/CodeMirror,rasata/CodeMirror,r7kamura/CodeMirror,amsul/CodeMirror,Aliccer/CodeMirror,fpco/codemirror,jochenberger/CodeMirror,thomasjm/CodeMirror,philuchansky/CodeMirror,buchslava/CodeMirror,kangkot/CodeMirror,agendor/CodeMirror,rrandom/CodeMirror,DustinH/CodeMirror,happibum/CodeMirror-main,anthonygego/CodeMirror,shiren/CodeMirror,loopspace/CodeMirror,melpon/CodeMirror,tpphu/CodeMirror,dudb/CodeMirror,SidPresse/CodeMirror,TDaglis/CodeMirror,Jisuanke/CodeMirror,elisee/CodeMirror,codio/CodeMirror,elisee/CodeMirror,kolya-ay/CodeMirror,TDaglis/CodeMirror,webida/CodeMirror,vincentwoo/CodeMirror,namin/CodeMirror,Dominator008/CodeMirror,sanyaade-iot/CodeMirror