silverstripe/sapphire — pull request #1001 by jeffwhitfield (2012-12-06 16:44:47+00:00)
Title: Updated javascript methods to allow for adding custom data attributes to...

... the script tag output

In order to allow the inclusion of RequireJS and other scripts that require data attributes on the script tag, I updated the methods to allow for it. I tried to simply extend the Requirements class and use the set_backend method but, unfortunately, due to the way data is passed within the main Requirements class, there's no simple way to override and extend the main class. As such, I figure just update the whole thing and make it available as part of the framework. :)

Upside of this change is that it sets up the ability to pass other parameters for future updates.