Skip to content

Commit fd416a2

Browse files
committed
Remove importHref from 3.0
1 parent d089bdc commit fd416a2

2 files changed

Lines changed: 0 additions & 120 deletions

File tree

lib/legacy/legacy-element-mixin.js

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { ElementMixin } from '../mixins/element-mixin.js';
1313
import { GestureEventListeners } from '../mixins/gesture-event-listeners.js';
1414
import { DirMixin } from '../mixins/dir-mixin.js';
1515
import { dedupingMixin } from '../utils/mixin.js';
16-
import { importHref as importHref$0 } from '../utils/import-href.js';
1716
import '../utils/render-status.js';
1817
import '../utils/unresolved.js';
1918
import { dom as dom$0, matchesSelector } from './polymer.dom.js';
@@ -798,29 +797,6 @@ export const LegacyElementMixin = dedupingMixin((base) => {
798797
return elt;
799798
}
800799

801-
/**
802-
* Convenience method for importing an HTML document imperatively.
803-
*
804-
* This method creates a new `<link rel="import">` element with
805-
* the provided URL and appends it to the document to start loading.
806-
* In the `onload` callback, the `import` property of the `link`
807-
* element will contain the imported document contents.
808-
*
809-
* @param {string} href URL to document to load.
810-
* @param {?function(!Event):void=} onload Callback to notify when an import successfully
811-
* loaded.
812-
* @param {?function(!ErrorEvent):void=} onerror Callback to notify when an import
813-
* unsuccessfully loaded.
814-
* @param {boolean=} optAsync True if the import should be loaded `async`.
815-
* Defaults to `false`.
816-
* @return {!HTMLLinkElement} The link element for the URL to be loaded.
817-
*/
818-
importHref(href, onload, onerror, optAsync) { // eslint-disable-line no-unused-vars
819-
let loadFn = onload ? onload.bind(this) : null;
820-
let errorFn = onerror ? onerror.bind(this) : null;
821-
return importHref$0(href, loadFn, errorFn, optAsync);
822-
}
823-
824800
/**
825801
* Polyfill for Element.prototype.matches, which is sometimes still
826802
* prefixed.

lib/utils/import-href.js

Lines changed: 0 additions & 96 deletions
This file was deleted.

0 commit comments

Comments
 (0)