Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Object doesn't support property or method 'find' in IE11

Explorer ,
Sep 18, 2018 Sep 18, 2018

Hello,
In a project I am creating objects dynamically and assigning id to each of them.
Later I need to find these object and do something with them.
But in IE11 it is not working
I am wondering weather aforementioned property or method is supported in IE11. Works fine in edge and other modern browsers.
Code and error are below:-

Thank you.

2.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Sep 18, 2018 Sep 18, 2018

Not supported in IE11.

https://caniuse.com/#search=Array.prototype.find

You'll have to code your own function to perform what find() is doing.

Translate
Community Expert ,
Sep 18, 2018 Sep 18, 2018

is stage.children[1].children an array?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 18, 2018 Sep 18, 2018

Not supported in IE11.

https://caniuse.com/#search=Array.prototype.find

You'll have to code your own function to perform what find() is doing.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Sep 18, 2018 Sep 18, 2018
LATEST

kglad​ stage.children[1] is an createjs container and stage.children[1].children are objects that I am adding to the container.

ClayUUID I also thought so. Thanks for confirming.

Thank you both for quick reply.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines