Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

performance.now and Bitmap class breaking on Safari 5.1.7 on Windows #919

Open
anazei opened this issue Oct 30, 2017 · 4 comments
Open

performance.now and Bitmap class breaking on Safari 5.1.7 on Windows #919

anazei opened this issue Oct 30, 2017 · 4 comments
Assignees

Comments

@anazei
Copy link

anazei commented Oct 30, 2017

Besides the usual browsers, I also test my EaselJS work on Safari in Windows but Apple hasn't released a new version of Safari for Windows in years. I'm relegated to using Safari 5.1.7 which is the latest version I could find for Windows. These next two errors only affect Safari 5.1.7 for Windows.

When I use Safari 5.1.7 with your latest builds easeljs-NEXT.min.js and easeljs.min.js (v1.0), I immediate get these errors:

TypeError: 'undefined' is not an object (evaluating 'c.performance.now')

and it appears your Bitmap class has been broken. The Bitmap class still works for me in version 0.8.2 on Safari.

TypeError: 'undefined' is not a constructor (evaluating 'new createjs.Bitmap( "images/paint2.png" )')

@Jokero
Copy link

Jokero commented Jan 8, 2018

The same thing is with safari 7.1 on MacOS (Mavericks). Tested example https://createjs.com/demos/easeljs/spritesheet using https://www.browserstack.com
Demo just does not work with the same error TypeError: 'undefined' is not an object (evaluating 'c.performance.now')

@Jokero
Copy link

Jokero commented Jan 8, 2018

I guess solution is to use some polyfill

@reinierf
Copy link

reinierf commented Apr 19, 2018

Using createjs.1.0.0 also results in "TypeError: 'undefined' is not an object (evaluating 'c.performance.now')"
in Safari 9.1.3 on OS X (10.9.5) and in Safari in iOS 7.1.2.
Of course, using a polyfill for older platforms is a solution, but I am rather surprised that this is not properly covered by the createjs library itself, as it was in earlier versions.

@DrMinh
Copy link

DrMinh commented Nov 4, 2019

i got error "cannot read property 'now' of undefined" (Line 1401 of createjs.js) when i test on my device (android 2.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants