Skip to content
This repository has been archived by the owner on Dec 28, 2024. It is now read-only.

Commit

Permalink
Add formatconfig.json; format.
Browse files Browse the repository at this point in the history
  • Loading branch information
bicknellr committed Jul 18, 2018
1 parent 0e66935 commit 9764e3b
Show file tree
Hide file tree
Showing 4 changed files with 385 additions and 380 deletions.
33 changes: 17 additions & 16 deletions demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
See: https://github.com/Polymer/polymer-modulizer/issues/154
-->
<script type="module">
const $_documentContainer = document.createElement('template');
const $_documentContainer = document.createElement('template');

$_documentContainer.innerHTML = `<custom-style>
$_documentContainer.innerHTML = `<custom-style>
<style is="custom-style" include="demo-pages-shared-styles">
.example {
margin: 4px;
Expand All @@ -48,26 +48,27 @@
</style>
</custom-style>`;

document.body.appendChild($_documentContainer.content);
</script>
document.body.appendChild($_documentContainer.content);
</script>

<script type="module">
import '@polymer/polymer/polymer-legacy.js';
import '@polymer/iron-demo-helpers/demo-pages-shared-styles.js';
import '@polymer/iron-demo-helpers/demo-snippet.js';
import '../iron-image.js';
function load(id) {
document.getElementById(id).src = './polymer.svg?' + Math.random();
}
</script>
import '@polymer/polymer/polymer-legacy.js';
import '@polymer/iron-demo-helpers/demo-pages-shared-styles.js';
import '@polymer/iron-demo-helpers/demo-snippet.js';
import '../iron-image.js';
function load(id) {
document.getElementById(id).src = './polymer.svg?' + Math.random();
}
</script>

</head>
<body unresolved>

<script type="module">
const $_documentContainer = document.createElement('template');
const $_documentContainer = document.createElement('template');

$_documentContainer.innerHTML = `<div class="vertical-section-container centered">
$_documentContainer.innerHTML =
`<div class="vertical-section-container centered">
<h3>A plain <code>iron-image</code>.</h3>
<demo-snippet class="centered-demo">
Expand Down Expand Up @@ -297,8 +298,8 @@ <h3>
</div>`;

document.body.appendChild($_documentContainer.content);
</script>
document.body.appendChild($_documentContainer.content);
</script>

</body>
</html>
5 changes: 5 additions & 0 deletions formatconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"style": {
"ReflowComments": false
}
}
9 changes: 4 additions & 5 deletions iron-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ Custom property | Description | Default
*/
import '@polymer/polymer/polymer-legacy.js';

import { Polymer } from '@polymer/polymer/lib/legacy/polymer-fn.js';
import { html } from '@polymer/polymer/lib/utils/html-tag.js';
import { resolveUrl } from '@polymer/polymer/lib/utils/resolve-url.js';
import {Polymer} from '@polymer/polymer/lib/legacy/polymer-fn.js';
import {html} from '@polymer/polymer/lib/utils/html-tag.js';
import {resolveUrl} from '@polymer/polymer/lib/utils/resolve-url.js';
Polymer({
_template: html`
<style>
Expand Down Expand Up @@ -355,8 +355,7 @@ Polymer({
},

_resolveSrc: function(testSrc) {
var resolved =
resolveUrl(testSrc, this.$.baseURIAnchor.href);
var resolved = resolveUrl(testSrc, this.$.baseURIAnchor.href);
// NOTE: Use of `URL` was removed here because IE11 doesn't support
// constructing it. If this ends up being problematic, we should
// consider reverting and adding the URL polyfill as a dev dependency.
Expand Down
Loading

0 comments on commit 9764e3b

Please sign in to comment.