Revert of Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320) (patchset...
[chromium-blink-merge.git] / third_party / web-animations-js / sources / target-loader.js
bloba4a9d30fd414913d2b342cdd669ae3336cbb0303
1 (function() {
2   var target = webAnimationsTargetConfig.defaultTarget;
3   if (typeof webAnimationsSourceTarget != 'undefined')
4     target = webAnimationsSourceTarget;
6   // Native implementation detection.
8   var scripts = document.getElementsByTagName('script');
9   var location = scripts[scripts.length - 1].src.replace(/[^\/]+$/, '');
10   webAnimationsTargetConfig[target].src.forEach(function(sourceFile) {
11     document.write('<script src="' + location + sourceFile + '"></script>');
12   });
13 })();