Skip to content

Commit

Permalink
Use customElements.get rather than referring to the global for Polyme…
Browse files Browse the repository at this point in the history
…r.DomModule
  • Loading branch information
rictic committed Jul 24, 2017
1 parent dbedcfc commit bb20237
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/utils/style-gather.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<link rel="import" href="resolve-url.html">
<link rel="import" href="../elements/dom-module.html">
<script>
(function() {
'use strict';
Expand All @@ -17,10 +16,11 @@
const INCLUDE_ATTR = 'include';

function importModule(moduleId) {
if (!Polymer.DomModule) {
const PolymerDomModule = customElements.get('dom-module');
if (!PolymerDomModule) {
return null;
}
return Polymer.DomModule.import(moduleId);
return PolymerDomModule.import(moduleId);
}

/**
Expand Down

0 comments on commit bb20237

Please sign in to comment.