Commit Graph

114 Commits

Author SHA1 Message Date
Kevin Schaaf
65d73f17c7 Allow Polymer fn's call to Class to be overridden. 2018-04-19 16:26:04 -07:00
Elliott Marquez
d913614db9 manually change inter-package dep imports from paths to names 2018-04-18 15:44:50 -07:00
Peter Burns
232b004285 Import Polymer function in tests from legacy/polymer-fn.js 2018-04-16 11:23:57 -07:00
Peter Burns
cf3b7215aa Replace sources with modulizer output. 2018-04-16 11:18:42 -07:00
Peter Burns
527d2cdd14 Rename HTML files to .js files to trick git's rename detection. 2018-04-16 11:15:46 -07:00
Kevin Schaaf
61ca60e4bf Add reasoning for suppress missingProperties 2018-04-05 18:57:59 -07:00
Kevin Schaaf
412bb1e019 Avoid closure warnings. 2018-04-05 14:59:48 -07:00
Kevin Schaaf
616f6662f0 Add ability to define importMeta on legacy elements. Fixes #5163 2018-04-05 14:12:54 -07:00
Peter Burns
91d4aebaa6 Pass through fourth namespace param on attributeChangedCallback. 2018-03-30 15:33:39 -07:00
Tim van der Lippe
4004c9c44c Update Google Closure Compiler version and fix cast 2018-02-25 16:49:53 +01:00
Steven Orvell
59d7f975b0 Merge branch 'master' into disable-upgrade 2018-02-21 10:22:08 -08:00
Alexander Marks
3ede9b517e Make EventApi.path EventTarget type non-nullable. 2018-02-06 22:29:26 -08:00
Tim van der Lippe
6b794740b1 Merge pull request #5007 from AliMD/patch-2
fix(legacy-element-mixin): _log with single parameter #5006
2018-01-15 15:32:54 +01:00
Alexander Marks
d7ea2464cd Update mixinBehaviors annotation. Behaviors don't satisfy PolymerInit. (#5036) 2018-01-10 16:30:15 -08:00
James Garbutt
6ab5c4a4ee add correct return type for querySelectorAll (#5034) 2018-01-10 14:47:20 -08:00
Steven Orvell
a7eb97548b Defer creation related work via disable-upgrade 2018-01-09 16:46:17 -08:00
James Garbutt
589684a5a4 add void return type annotations (#5000)
* add void return type annotations

* define dom api prototype members as functions

* fix renderstatus optional parameters

* fix style-gatherer types

* fix templatize types

* fix event listener remove types

* use generics in mixinBehaviors

* update gen-typescript-declarations

* add memberof annotation to domapi methods

* add domapi types

* move dom methods to correct place

* use parameterless NodeList for the dom API
2018-01-09 15:10:12 -08:00
AliMD
e0affe3f96 fix(legacy-element-mixin): syntax error in _logger 2017-12-27 10:32:11 +03:30
AliMD
f4ecbae593 fix(legacy-element-mixin): _log with single parameter #5006 2017-12-27 10:25:46 +03:30
Alexander Marks
7b581de9a2 Address latest round of comments. 2017-12-18 16:47:20 -08:00
Tim van der Lippe
e872982269 Tighten more types for TypeScript and Closure (#4998) 2017-12-18 14:03:02 -08:00
Alexander Marks
ee4445f8a4 Tighten Closure type annotations. (#4997) 2017-12-15 15:55:14 -08:00
Steven Orvell
35e3c54b9b Apply listeners in constructor rather than ready
Fixes #4394. This change allows elements to have "first crack" at their own events (via the `listeners` object) before handlers registered via `on-*` see events. This is both more expected and fixes an inconsistency with 1.x.
2017-12-11 17:43:49 -08:00
Kevin Schaaf
a12934c578 Fix most closure warnings. 2017-12-05 17:34:14 -08:00
Kevin Schaaf
b158e082d0 Merge with master 2017-12-05 15:49:07 -08:00
Daniel Freedman
bf8b21b593 Merge pull request #4915 from Polymer/4914-kschaaf-mutable-docs
Clarify all elements between changes must apply mixin.
2017-11-02 14:25:55 -07:00
Alexander Marks
7308d8b62c Annotate DomApi with @memberof Polymer 2017-11-01 17:34:12 -07:00
Kevin Schaaf
7360f42a34 Clarify all elements between changes must apply mixing.
Fixes #4914
2017-11-01 17:07:59 -07:00
Daniel Freedman
e9e2cda888 Merge pull request #4880 from Polymer/native-dir
:dir() support
2017-10-16 10:58:38 -07:00
Daniel Freedman
e71b84a8b8 Address feedback
- Extend PropertyAccessors for greater flexibility
- Detect if `:dir` is used in order to activate runtime features
- Add to LegacyElement for 1.x compatibility
- clean up `ElementMixin._finalizeTemplate`
2017-10-12 11:17:19 -07:00
Alexander Marks
3b15517388 Declare Polymer.Templatizer directly, for Closure. (#4870)
Closure cannot follow the indirect `@polymerBehavior` annotation, so define Polymer.Templatizer directly.
2017-10-06 16:58:14 -07:00
Artur Parkhisenko
b19e180a45 Fix typos and jsdoc (#4846) 2017-09-20 11:24:29 -07:00
Steve Orvell
21ff47184e Merge pull request #4837 from Polymer/no-cast-in-return
No cast in return
2017-09-12 17:42:13 -07:00
Daniel Freedman
f6f0a3b7ae a few more comments in return 2017-09-07 15:32:25 -07:00
Daniel Freedman
c802b8b2f3 Don't have return /** comment */ lines
This breaks espree AST generation with automatic semicolon insertion and
becomes

```
return
/** comment */
thing;
```
2017-09-07 15:07:32 -07:00
Josh Soref
bbe54cc236 spelling: prototype 2017-09-07 04:41:30 +00:00
Josh Soref
17678e1a5d spelling: identify 2017-09-07 04:34:09 +00:00
Josh Soref
139edd00e9 spelling: effective 2017-09-07 04:17:55 +00:00
Josh Soref
65f276555f spelling: behavior 2017-09-06 05:45:54 +00:00
Josh Soref
6c59f53bd2 spelling: asynchronous 2017-09-06 05:44:53 +00:00
Tim van der Lippe
75c6fff78b Enable ESLint 'semi' rule
Closes #4651
2017-08-16 19:23:50 -07:00
Daniel Freedman
d937d5fe38 Fix compiling with Polymer({}) calls
Add types for instance properties of ElementMixin and LegacyElementMixin
2017-08-09 14:15:11 -07:00
Steven Orvell
2daf9de223 Update LegacyElementMixin.distributeContent
This should no longer be needed and is provided only for backwards compatibility.
2017-07-14 15:02:19 -07:00
Daniel Freedman
3e14a1d812 zero warnings left 2017-06-27 18:39:39 -07:00
Daniel Freedman
2efccb95f4 Remove @suppress {missingProperties}
It may break stuff in closure to use this much, so try to shape classes
for closure directly.

Use polymer pass v2 to remove warnings for properties defined in
`properties` block
2017-06-20 17:30:57 -07:00
Daniel Freedman
9b7e1848ce Merge branch 'master' into closure-warnings 2017-06-20 14:40:54 -07:00
Daniel Freedman
48fdac7f79 Merge pull request #4568 from Polymer/jsdoc-new-tags
Jsdoc new tags
2017-06-20 12:53:38 -07:00
Daniel Freedman
7612df67d8 remove PolymerPropertyEffects type, inline DataTrigger and DataEffect types 2017-06-16 15:12:01 -07:00
Daniel Freedman
f7e2bd9730 Merge branch 'master' into closure-warnings 2017-06-15 14:43:31 -07:00
Daniel Freedman
57d3d97046 Merge pull request #4668 from Polymer/guard-all-dommodule
guard all references to Polymer.DomModule
2017-06-15 11:28:09 -07:00