Skip to content

Commit 5ae21a0

Browse files
committed
fix some formatting and closure linting
1 parent 946aad5 commit 5ae21a0

9 files changed

+1152
-727
lines changed

externs/closure-types.js

+730-319
Large diffs are not rendered by default.

externs/polymer-closure-types.html

+4
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,8 @@
154154
* }}
155155
*/
156156
let TemplatizeOptions;
157+
158+
159+
/** @typedef {{run: function(function(), number=):number, cancel: function(number)}} */
160+
let AsyncInterface;
157161
</script>

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ gulp.task('closure', ['clean'], () => {
144144
if (CLOSURE_LINT_ONLY) {
145145
closurePluginOptions = {
146146
logger: closureLintLogger
147-
}
147+
};
148148
}
149149

150150
const closureStream = closure({

lib/elements/properties-element.html

+25-31
Original file line numberDiff line numberDiff line change
@@ -13,36 +13,30 @@
1313
<link rel="import" href="../mixins/properties-mixin.html">
1414

1515
<script>
16-
(function() {
16+
(function () {
1717

18-
'use strict';
18+
'use strict';
1919

20-
/**
21-
* Base class that provides a simple starting point for creating an element
22-
* that declares properties via the `properties` static getter that are
23-
* observed. Changes are reported via the `_propertiesChanged` method.
24-
* This element provides no specific support for rendering. Users are expected
25-
* to create a shadowRoot and put content into it and update it in whatever
26-
* way makes sense for the use case.
27-
*
28-
* @customElement
29-
* @polymer
30-
* @memberof Polymer
31-
* @constructor
32-
* @implements {Polymer_PropertiesMixin}
33-
* @extends HTMLElement
34-
* @appliesMixin Polymer.PropertiesMixin
35-
* @summary Base class that provides a simple starting point for creating an
36-
* element that declares properties via the `properties` static getter that
37-
* are observed
38-
*/
39-
const PropertiesElement = Polymer.PropertiesMixin(HTMLElement);
40-
/**
41-
* @constructor
42-
* @implements {Polymer_PropertiesMixin}
43-
* @extends {HTMLElement}
44-
*/
45-
Polymer.PropertiesElement = PropertiesElement;
46-
47-
})();
48-
</script>
20+
/**
21+
* Base class that provides a simple starting point for creating an element
22+
* that declares properties via the `properties` static getter that are
23+
* observed. Changes are reported via the `_propertiesChanged` method.
24+
* This element provides no specific support for rendering. Users are expected
25+
* to create a shadowRoot and put content into it and update it in whatever
26+
* way makes sense for the use case.
27+
*
28+
* @customElement
29+
* @polymer
30+
* @memberof Polymer
31+
* @constructor
32+
* @implements {Polymer_PropertiesMixin}
33+
* @extends HTMLElement
34+
* @appliesMixin Polymer.PropertiesMixin
35+
* @summary Base class that provides a simple starting point for creating an
36+
* element that declares properties via the `properties` static getter that
37+
* are observed
38+
*/
39+
const PropertiesElement = Polymer.PropertiesMixin(HTMLElement);
40+
Polymer.PropertiesElement = PropertiesElement;
41+
})();
42+
</script>

0 commit comments

Comments
 (0)