Fix an IE 8 issue caused by a for..in loop
Merge pull request #188 from niuage/master

Fixes an IE 8 issue caused by a for..in loop