this isn't this on IE8..
johnhunt opened this issue · comments
Works as expected on chrome etc.. returns undefined on IE..
Turns out this is the window on IE whereas it is what it's meant to be on Chrome. Unfortunately my JS knowledge isn't too great so please can you take a look? I love Chibi's smallness but this is a bit of a showstopper for me :(
Cheers,
John.
This no doubt affects other IE's also...
If you look at the console you will see this warning:
SEC7112: Script from https://raw.github.com/kylebarrow/chibi/master/chibi-min.js was blocked due to mime type mismatch
IE is blocking the script for security reasons, read more here: http://blogs.msdn.com/b/ie/archive/2010/10/26/mime-handling-changes-in-internet-explorer.aspx
Github is serving the file as 'text/plain', host chibi.js on your own server where you can control the mime type.
Also you should disable any other "grown-up" frameworks, like mootools. chibi was not designed to work with them. Choose No-Libarary (pure JS) in jsfiddle.
I am on Windows 8 IE 10.
IE 8 or lower have terrible issues with scope (event scope is always window object, etc.).
While this is not strictly a bug in Chibi, I've added a fix for IE's scope issues in 1.0.5