added forIn, getBytes for supporting ie8

added 2 util functions (forIn, getBytes).
- forIn : ie8 ignores constructor property in "for .. in" loop. this function would be used also in Spine.
- getBytes : it would be used in Match Breakdown for calculating the correct offset of pie chart title (such as 'Champion Kills', 'Gold Earned') not only 1byte character but also 2bytes character.


Ah, that could be the issue. I am testing on IE9. Give me a bit to review
your code and we can update iterate to add support.
On Jul 14, 2014 10:26 PM, "pearlc" <notifications@github.com> wrote:

> In src/jsoop/util/Object.js:
>
> > @@ -107,9 +107,28 @@
> >          return true;
> >      };
> >
> > +    // ie8 compatible for-in
> > +    JSoopObject.forIn = function (obj, fn){
>
> I just tested with that code, and ie8 doesn't show constructor in console.
>
> Did you test with ie8 emulator in ie11 ?
> i also tested in that way and it showed, but the native ie8 (it's on my
> windows7 virtual machine) doesn't show the constructor.
> it think that's the point.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/puritysdisciple/jsoop/pull/3/files#r14917849>.
>