Since IE8 does not support getComputedStyle, we can only use currentStyle. However, it does not return the real \"computed\" value
getComputedStyle
currentStyle
instead of :
getComputedStyle !== 'undefined'
it should be :
typeof getComputedStyle !== 'undefined'
otherwise it would never works.