NC12 issue with new eval() in OC.addScript


This commit from @LukasReschke added fixes to core js.js

now the scipt is evaluated with eval() when being included.

in Audio Player I have the issue now that an external js is giving an error
Uncaught TypeError: ThreeSixtyPlayer is not a constructor

The issue seems to be this part

the js is being used as-is in all other releases without problem - also in other web implementations of the soundmanager2.
only the current 12.0.0beta4 has this issue

any idea?

some more testing.

the above error occurs if I include my additional script from javascript using

when I include the same same via app.php, everything works as expected
\OCP\Util::addScript( 'audioplayer', '360player' );

any explanation for that?