Commit Graph
608 Commits
Author SHA1 Message Date
Daniel Freedman 706e602162 Fix regression with imported css
Fix case where `<link rel="import" type="css">` is the only styling for
an element

Fixes #4986
2017-12-12 11:42:37 -08:00
Tim van der Lippe 81add63e7a Merge pull request #4956 from pkaske/fix_prop_deserial_objects_4464
Allow non-JSON literals when property type is "Object".
2017-12-12 20:01:55 +01: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
Steven Orvell c8acc183c2 Replace disconnectedCallback stub since this change is breaking. 2017-12-11 11:44:13 -08:00
Steven Orvell 1b514b4f9b Minor fixes
* [PropertiesChanged]: check for and call `super.attributeChangedCallback`
* [PropertiesMixin]:
  * remove `disconnectedCallback` stub.
  * Improve comments
2017-12-11 11:11:12 -08:00
Daniel Freedman a89c9ba09a fix eslint error for unused var in _setPendingProperty 2017-12-08 14:52:21 -08:00
Daniel Freedman c519796fb5 fix closure typing with Polymer.html function 2017-12-08 14:34:11 -08:00
Daniel Freedman da46204d72 Merge branch 'master' into basic-element 2017-12-08 14:29:07 -08:00
Daniel Freedman 986fb3e9fd re-add AsyncInterface definition, fix comment 2017-12-08 10:58:36 -08:00
Kevin Schaaf 40d47f24d1 Avoid _setPendingProperty warning due to types not understanding deduping mixin. 2017-12-08 10:55:33 -08:00
Daniel Freedman 4915b0a018 Merge pull request #4971 from Polymer/html-template-fn
`html` tag function for generating templates
2017-12-07 13:49:04 -08:00
Kevin Schaaf 05e66f899e Merge pull request #4969 from Polymer/docs-flattened-nodes-observer
Add example for flattened-nodes-observer
2017-12-07 09:11:06 -08:00
Daniel Freedman 7a3fdb2d86 2.3.1 2017-12-07 09:10:16 -08:00
Daniel Freedman 02c06aa3b8 Rename html-fn to html-tag
Add tests
Add a `Polymer.html = Polymer.html` line to `polymer.html` and
`polymer-element.html` for modulizer exporting in Polymer 3.
2017-12-06 17:07:26 -08:00
Daniel Freedman b7c56173c2 Use padding-top to get correct computed style on older safari
Because the element wasn't floating, `top: 10px` was not showing up in
computed styles on Safari 9 and 10
2017-12-06 14:54:27 -08:00
Daniel Freedman 0b1cd70a10 Handle styles that are not direct children of templates correctly
Find the correct spot to add "included" styles in the template by
keeping track of which "concrete" style in the template we have
encountered and inserting the "included" styles before them.

Fixes #4975
2017-12-06 11:40:04 -08:00
Kevin Schaaf a12934c578 Fix most closure warnings. 2017-12-05 17:34:14 -08:00
Kevin Schaaf fa40f205db Add back disconnectedCallback. 2017-12-05 15:54:44 -08:00
Kevin Schaaf b158e082d0 Merge with master 2017-12-05 15:49:07 -08:00
Kevin Schaaf ad539fe725 Move function out of closure. Add comments. 2017-12-05 15:32:46 -08:00
Daniel Freedman bf0dfef9f3 2.3.0 2017-12-05 15:21:56 -08:00
Daniel Freedman 4171d5247a 2.2.1 2017-12-05 14:59:07 -08:00
Daniel Freedman c9c8af1531 Merge branch 'update-deps' 2017-12-05 14:36:32 -08:00
Daniel Freedman 5c91985061 [ci skip] TODO for link to docs and comment spellcheck 2017-12-05 11:07:14 -08:00
Daniel Freedman be9d6210f0 Use values.reduce instead of a temporary array
Seems to be faster in v8
2017-12-04 17:41:54 -08:00
Daniel Freedman 530a68b44a Add deprecation notice for class.template returning a string
Load `Polymer.html` fn by default with `PolymerElement`.
2017-12-04 17:29:54 -08:00
Daniel Freedman bdfa5fcbd7 [skip-ci] update comment for Polymer.html 2017-12-04 17:25:06 -08:00
Daniel Freedman 668b5316cf Merge pull request #4970 from Polymer/fix-dir-with-nested-elements
Fix :dir selectors with nested custom elements
2017-12-04 16:42:09 -08:00
Daniel Freedman 75d873a00e remove null/undefined to empty string 2017-12-04 16:29:07 -08:00
Daniel Freedman d5070bbee3 Address feedback
- Only support HTMLTemplateElement and strings
- Use raw strings for the constants to handle single `\`
2017-12-04 16:07:45 -08:00
Daniel Freedman 1bba3abb81 html tag function for generating templates
Fixes #4937
2017-12-04 15:27:46 -08:00
Daniel Freedman b311a77338 Merge pull request #4962 from Polymer/passive-touch-no-touchend
Do not set touchend listeners to passive
2017-12-04 14:12:00 -08:00
Daniel Freedman a39f3f41ad update node devDependencies 2017-12-04 11:15:46 -08:00
Daniel Freedman 3b76e86f52 Fix :dir selectors with nested custom elements
Fixes #4966
2017-12-04 10:37:20 -08:00
Tim van der Lippe 08ad6e373a Add example for flattened-nodes-observer 2017-12-03 17:26:57 +01:00
Tim van der Lippe 21915723db Merge branch 'master' into deserialization-date 2017-12-03 16:53:11 +01:00
Tim van der Lippe 0c185b5fad Merge pull request #4574 from ChadKillingsworth/observer-function
Support property observers which are direct function references
2017-12-01 23:30:56 +01:00
Steven Orvell ed1454d628 Minor updates based on review. 2017-11-30 15:25:50 -08:00
Alexander Marks b124b707b4 Annotate Polymer function with @global. (#4967)
This will let Analyzer discover it thanks to
https://github.com/Polymer/polymer-analyzer/pull/774.
2017-11-30 14:18:23 -08:00
Daniel Freedman c5407a8bea make PASSIVE_TOUCH take an argument 2017-11-30 14:10:05 -08:00
Tim van der Lippe 4b0def6d04 Merge pull request #4934 from 43081j/return-types
Add return jsdoc to void functions
2017-11-30 14:45:14 +01:00
Steven Orvell d3e1bae48a Merge branch 'master' into basic-element 2017-11-29 16:49:07 -08:00
Steven Orvell 40f02ea178 Remove PropertiesElement in favor of PropertiesMixin. 2017-11-29 16:33:44 -08:00
Daniel Freedman 84fa3bf383 Do not set touchend listeners to passive
`touchend` listeners do not need to be passive to enable more performant
scrolling.

With this change, most of the tradeoffs with enabling
`passiveTouchGestures` disappear, leaving only the inability to control
scrolling from `track`, `down`, and `move` gestures.

Fixes #4961
2017-11-29 12:17:00 -08:00
Daniel Freedman 3313019766 Merge pull request #4960 from Polymer/aomarks-function-annotations
Add some @function annotations to APIs that are defined by assignment.
2017-11-29 11:08:25 -08:00
Steven Orvell 8d57a6e91d Remove propertyNameForAttribute since it's never needed. 2017-11-29 11:01:02 -08:00
Steven Orvell e09285dbf1 Fix subclassing and simplify. 2017-11-29 10:42:09 -08:00
Steven Orvell 603123e168 Move property<->attribute case mapping to PropertiesChanged. 2017-11-29 10:25:09 -08:00
Alexander Marks 29f2a0e7c4 Add some @function annotations to APIs that are defined by assignment.
This helps analyzer understand when something is a function despite not
having any function-looking syntax on the right-hand-side.
2017-11-28 21:34:13 -08:00
43081j a8105e55a4 add return jsdoc to void functions 2017-11-28 20:57:41 +00:00