thinkpixellab / PxLoader

PxLoader is a simple JavasScript library for creating preloaders and resource downloaders for HTML5 apps.

Home Page:http://thinkpixellab.com/pxloader

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

errors in IE8

atran opened this issue · comments

PxLoader works on IE8 emulated in IE9, but not vanilla IE8.

"Number expected
PxLoader.js
Line: 125
Char: 9"

Try adding

return 0;

...as the last line of the anonymous compare function just above this line. In my source that's line 117. I think IE8 is picky on the comparison functions, and zero means two items are equal. Does that work for you?

I've merged the fix for issue #4 which is the same solution that Barnabas identified. Let us know if you are still having problems after picking up that change.

Works great.