krisk / textualizer

A jQuery plug-in which transitions through blurbs of text, animating each character
http://krisk.github.io/textualizer/
341 stars 40 forks source link

Textualizer Problem with IE 8 #14

Closed maldopo closed 12 years ago

maldopo commented 12 years ago

Dear Kirollos Risk

I really like the textualizer and it works fine with firefox. But in IE 8 it doesn`t work,nothing of the text can be seen. Instead I get a script-warning line:197 sign: 17.

When I take out the following part of the textualizer.js (around line 197) ....

for (var prop in style) { if (style.hasOwnProperty(prop)) { styleList[prop] = style[prop]; }; }

...the text can be seen in IE 8, but everything at once in one line. Firefox still works fine without this part.

Maybe a new/old bug in the script ?

Thanks for your help

Maldopo

krisk commented 12 years ago

Taking a look.. will have a fix soon. Thanks.

TommyJoe commented 12 years ago

Kirollos,

Do you have a solution on this? It's not working on IE and Opera 11.62 The error message in IE is: "Error: Object doesn't support property or method 'hasOwnProperty'"

I tried to replace: if (style.hasOwnProperty(prop)) by: if(style.hasOwnProperty && style.hasOwnProperty(prop))

It bypasses the error message, but the style is all messed up the display, everything appears on the same line...

Thanks for the help.