| Index: third_party/polymer/v0_8/components-chromium/polymer/src/standard/resolveUrl-extracted.js
|
| diff --git a/third_party/polymer/v0_8/components-chromium/polymer/src/standard/resolveUrl-extracted.js b/third_party/polymer/v0_8/components-chromium/polymer/src/standard/resolveUrl-extracted.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..eae610848b736997dc54f7cd519956e1328ea088
|
| --- /dev/null
|
| +++ b/third_party/polymer/v0_8/components-chromium/polymer/src/standard/resolveUrl-extracted.js
|
| @@ -0,0 +1,17 @@
|
| +
|
| +
|
| + Polymer.Base._addFeature({
|
| +
|
| + resolveUrl: function(url) {
|
| + // TODO(sorvell): do we want to put the module reference on the prototype?
|
| + var module = Polymer.DomModule.import(this.is);
|
| + var root = '';
|
| + if (module) {
|
| + var assetPath = module.getAttribute('assetpath') || '';
|
| + root = Polymer.ResolveUrl.resolveUrl(assetPath, module.ownerDocument.baseURI);
|
| + }
|
| + return Polymer.ResolveUrl.resolveUrl(url, root);
|
| + }
|
| +
|
| + });
|
| +
|
|
|