Commit Graph

6355 Commits

Author SHA1 Message Date
Kevin Schaaf
21e83e9e94 Remove unused import 2019-02-04 15:23:27 -08:00
Kevin Schaaf
11cd9cb241 Move undeclared property warning to element-mixin. 2019-02-04 15:12:06 -08:00
Kevin Schaaf
c309fef60b Upgrade wcjs 2019-02-04 14:14:05 -08:00
Kevin Schaaf
28f2281b7a Remove addressed TODO comment. 2019-02-01 10:13:26 -08:00
Kevin Schaaf
9dea1f780f Clarify warning. Add comment. 2019-02-01 10:12:47 -08:00
Kevin Schaaf
35c48d8952 Add warnings for disabling boolean settings. 2019-02-01 10:12:35 -08:00
Kevin Schaaf
6bd15ccb8e Upgrade webcomponentsjs 2019-01-31 18:43:07 -08:00
Kevin Schaaf
563bc8586c Fix lint warning 2019-01-30 10:33:34 -08:00
Kevin Schaaf
007f3cc251 Add warning for redeclared computed properties. 2019-01-30 10:08:58 -08:00
Kevin Schaaf
63dadbf248 Add warning for undeclared properties used in bindings. 2019-01-30 10:08:58 -08:00
Daniel Freedman
c22b87c797 Merge pull request #5464 from Polymer/copy-properties
Allow `Polymer({})` calls with ES6 class
2019-01-29 11:32:09 -08:00
Daniel Freedman
3ff4ed1b94 Add tests for calling Polymer() with ES6 class 2019-01-29 10:14:53 -08:00
Daniel Freedman
86db24cd87 use a regular for-loop intead of for-of 2019-01-28 16:30:06 -08:00
Peter Burns
038af2af7c Merge pull request #5467 from Polymer/static-override
Remove `@override` from static methods on mixins.
2019-01-15 13:32:14 -08:00
Peter Burns
bdcd37c513 Lint clean 2019-01-15 12:54:09 -08:00
Peter Burns
f15b137d14 Remove @override from static methods on mixins.
Closure compiler is improving its handling of class inheritance, and it does not understand our mixins well enough to notice that these methods override their superclasses. These annotations cause compiler errors in an upcoming version of the compiler.
2019-01-15 12:02:44 -08:00
Peter Burns
d619dc1cd2 Merge pull request #5466 from Polymer/externs-let
Externs should use var instead of let
2019-01-14 17:40:04 -08:00
Peter Burns
7745d431ac Externs should use var instead of let
Multiple externs may declare the same symbol and that's ok. That doesn't work if an extern is declared with `let` instead of `var`, you get errors like: Duplicate let / const / class / function declaration in the same scope is not allowed.
2019-01-14 16:52:20 -08:00
Alexander Marks
21930e7ac6 Merge pull request #5465 from Polymer/suppress-missing-properties
Add @suppress annotations for missing property checks.
2019-01-10 13:37:12 -08:00
Alexander Marks
7f2d736a96 Add @suppress annotations for missing property checks.
Upstream of cl/228620162
2019-01-10 12:23:55 -08:00
Daniel Freedman
3624a140df Allow Polymer({}) calls with ES6 class
External copy of cl/228511716
2019-01-09 15:16:22 -08:00
Peter Burns
ccc9380443 Merge pull request #5462 from Polymer/prototypalTypes
Suppress upcoming jscompiler errors.
2019-01-09 13:56:18 -08:00
Peter Burns
cf2cd05e73 Suppress upcoming jscompiler errors.
These errors don't exist yet, but we need to suppress them in the files that will have them so that we're not broken when they're turned on.
2018-12-19 16:15:06 -08:00
Alexander Marks
df6463dac5 Merge pull request #5458 from Polymer/templatize-root
Add type jsdoc to templatize root property.
2018-12-14 15:27:40 -08:00
Alexander Marks
0da022fd9d Add type jsdoc to templatize root property.
This allows analyzer to understand it for typings/docs.
2018-12-13 12:19:51 -08:00
Alexander Marks
b0c41d10dc Merge pull request #5455 from Polymer/undefined-settings
Remove meaningless "undefined" in settings.js
2018-12-11 14:49:49 -08:00
Alexander Marks
fcc8752724 Remove meaningless "undefined" in settings.js 2018-12-11 14:43:44 -08:00
Alexander Marks
60b1e9f65c Merge pull request #5448 from Polymer/3.0bump
Update Polymer 3 package-lock.
2018-12-06 13:46:44 -08:00
Alexander Marks
dfe7a54cf0 Update Polymer 3 package-lock.
This is just a checkpoint to make sure we're using the latest version
of the type generator.
2018-12-05 17:52:40 -08:00
Kevin Schaaf
56fc6830d6 Merge pull request #5423 from Polymer/5422-ldm-templatizer-fix
Apply LegacyDataMixin to TemplatizeInstanceBase. Fixes #5422
2018-11-26 17:35:14 -08:00
Kevin Schaaf
c23ff5e0da Merge branch 'master' into 5422-ldm-templatizer-fix 2018-11-20 15:50:35 -08:00
Kevin Schaaf
a7c861b1f3 Merge pull request #5421 from Polymer/behaviors-no-mixin
3.x - Performance optimizations geared towards legacy `Polymer({...})` use
2018-11-20 12:40:30 -08:00
Kevin Schaaf
51ebf4df8a Update to webcomponentsjs 2.2.0 2018-11-20 11:19:24 -08:00
Kevin Schaaf
2c560bc175 Update to latest webcomponentsjs 2018-11-19 17:12:07 -08:00
Kevin Schaaf
1092719f68 Merge branch 'master' into 5422-ldm-templatizer-fix 2018-11-19 17:10:27 -08:00
Daniel Freedman
5422792f0e Remove double-import of settings
Causing warnings with Closure Compiler

External copy of cl/222162967
2018-11-19 20:02:45 -05:00
Kevin Schaaf
6c93955bac Merge branch 'css-build-dir' into behaviors-no-mixin 2018-11-14 15:23:58 -08:00
Steven Orvell
ed5f7f279b Use closure-safe name 2018-11-14 11:02:18 -08:00
Steven Orvell
f3b6675573 Add tests
* When extended, a behavior `registered` is always called on sub-most prototype rather than the prototype on which `registered` was defined.
* behavior property default values are overwritten by later behaviors and elements
* readOnly properties ignored when a previous behavior observes the property
* observedAttributes when extended
2018-11-14 10:37:53 -08:00
Steven Orvell
ad5cb2686a Ensure properties and observers are interleaved per behavior 2018-11-13 19:36:47 -08:00
Steven Orvell
2b35a74f2a Ensure property values are always overridden by extendors/behaviors 2018-11-13 16:24:44 -08:00
Steven Orvell
50ad018c8d Ensure registered is always called on element prototype
Previously, it could be called on a superclass' prototype and not the element's prototype.
2018-11-13 15:32:41 -08:00
Daniel Freedman
655a64640b Merge pull request #5433 from smalls/err-not-air
err instead of air
2018-11-13 14:08:00 -08:00
Matt Small
ee68ea923a err instead of air 2018-11-13 10:56:23 -08:00
Steven Orvell
d64a9c27e5 Do lazy behavior copying only when legacyOptimizations is set 2018-11-09 18:48:48 -08:00
Steven Orvell
310c7ead07 Behavior property copying fixes
* ensure element has `is` on prototype early as this is sometimes checked in user code.
* ensure properties copied onto elements from info/behaviors are forced to configurable so they can be re-configured by later behaviors.
* add `_noAccessors` optimization for faster property copying
2018-11-09 18:18:06 -08:00
Steven Orvell
65a3149b8c Ensure initial static classes are preserved when a class$ binding is present
This ensures ShadyCSS scoping classes are not removed when a class binding's initial literal value is set.
2018-11-09 18:03:55 -08:00
Steven Orvell
82c9d17e23 Remove extra space 2018-11-09 11:33:12 -08:00
Steven Orvell
cf30a8cc35 Avoid copying certain properties from behaviors
This better matches what Polymer 1.x did for:
* hostAttributes
* listeners
* properties
* observers
2018-11-09 11:31:35 -08:00
Daniel Freedman
e00bf99326 skip some tests that never really worked in ShadyDOM 2018-11-07 15:40:07 -08:00