Jump to content

Problems with Pixi on IE9


richpixel
 Share

Recommended Posts

Well I know getting things to work on older versions of IE are not the highest priority... however- I chose pixi for some client work and of course they are having problems seeing it on IE9/Windows 7

 

I believe the problem is due to pixi using Object.defineProperty() which IE9 should be able to handle... but doesn't always.

 

There's a lot out there about getting the browser into IE9 standards mode (or something) - but every combination of tags and doctypes I use only seem to fix the problem, only to have it broken the next time we open the browser.

 

Using F12 developer tools to change the browser mode can fix it, but of course the end user won't be expected to do that.

 

The start of my html looks like this:

 

<!DOCTYPE html>
<html>
<head>
    <title>My Project</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <meta charset="utf-8">
 

Tried removing the IE=Edge meta tag but it gives me 'random' success. I'm basically ready to give up and convert to EaselJS which won't take me too long, but I'm still curious about this.

 

Thanks for any clues!

 

Link to comment
Share on other sites

I don't use the IE=Edge thing and I have no issue with IE9...

But still, I patched modified Pixi to not use Object.defineProperty so it might be the reason ^^ I never tried it with it before that, but as xerver said, you can try to use a polyfill if you're sure that's the reason of your problems.

Link to comment
Share on other sites

Object.defineProperty works fine in IE9, I'd wager the issue is with your doctype forcing it to fall into an unsupported mode. If you are telling it to use IE=Edge then you're basically saying only support the latest version of IE. IE9 will see this and fall into Quirks mode. This should help explain further:

 

http://msdn.microsoft.com/en-us/library/ie/jj676915(v=vs.85).aspx

Link to comment
Share on other sites

Ah yes, that old chestnut! Here, this might help in the future :)

(function() {    var consoleDisabled = false;    if (consoleDisabled) {        window.console = undefined;    }    if (window.console === undefined) {        window.console = {            debug: function() {                return true;            },            info: function() {                return false;            },            warn: function() {                return false;            },            log: function() {                return false;            }        }    }    debug = (function(args) {        window.console.debug(args);    });    info = (function(args) {        window.console.info(args);    });    warn = (function(args) {        window.console.warn(args);    });    log = (function(args) {        window.console.log(args);    });})();
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...