Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1000)

Side by Side Diff: polymer_0.5.0/bower_components/web-animations-js/target-loader.js

Issue 786953007: npm_modules: Fork bower_components into Polymer 0.4.0 and 0.5.0 versions (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 (function() {
2 var target = webAnimationsTargetConfig.defaultTarget;
3 if (typeof webAnimationsSourceTarget != 'undefined')
4 target = webAnimationsSourceTarget;
5
6 // Native implementation detection.
7
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698