mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-09-18 15:36:30 +02:00
7 lines
427 B
Plaintext
7 lines
427 B
Plaintext
|
Prototype replaces document.getElementsByClassName with it's own version. However many browsers
|
||
|
now come with their own implementation, and prototype's is much slower.
|
||
|
|
||
|
This fixes this by restoring the original after prototype is loaded.
|
||
|
|
||
|
@todo: Safari 3 used to come with a broken document.getElementsByClassName. We should use
|
||
|
the same checks jQuery does and not restore the function if it doesn't work the same as the spec.
|