Steven Orvell
a08c9840d6
Updates ported from perf-opt branch
...
Merging manually from https://github.com/Polymer/polymer/pull/5418 .
2018-10-31 19:21:04 -07:00
Steven Orvell
b6ae42d4c5
Merge branch 'master' into behaviors-no-mixin
2018-10-31 18:08:18 -07:00
Steven Orvell
4fcacaab09
Adds setting to skip style incudes and url rewriting
2018-10-17 16:07:01 -07:00
Caleb H
750e7e1a87
Fixed typos on lines 133 and 157 ( #5409 )
...
I also changed the wording on line 169 to be a bit more intuitive
2018-10-17 18:02:26 +01:00
Steven Orvell
624513f64d
Avoids using mixins for behaviors.
...
(WIP) Experimental optimization to avoid using mixins for behaviors.
2018-10-16 18:56:28 -07:00
Peter Burns
82e705f7ac
Collapse imports for file into one statement
...
This is a warning in the internal build system, and it does make the code a bit easier to read this way.
no-op change
2018-09-07 10:42:29 -07:00
Serhii Kulykov
448093b6dc
Cleanup modulizer conversion leftovers ( #5347 )
2018-09-06 11:07:57 +01:00
Kevin Schaaf
7a67e34d90
Merge pull request #5317 from Polymer/export-version
...
Export the current Polymer version in polymer-element.js
2018-08-27 14:30:49 -07:00
Kevin Schaaf
33ab3ae6a3
Remove undocumented logging feature ( #5331 )
...
Fixes previous cleanup which made it unconditional.
2018-08-17 23:45:52 +02:00
Tim van der Lippe
dae63e3dee
Cleanup element-mixin leftovers from modulizer
2018-08-17 17:30:02 +02:00
Kevin Schaaf
589ee496a9
Merge pull request #5304 from Polymer/strict-template-policy
...
[3.x] Introduce strictTemplatePolicy
2018-08-14 14:27:31 -07:00
Tim van der Lippe
2957e9d4b8
Move version to ElementMixin prototype
2018-08-14 12:44:33 +02:00
Alexander Marks
d27b4a12fb
Add a template setter to ElementMixin.
...
Currently, to assign a template to a Polymer element, you need to
override the setter, or call Object.defineProperty.
This also allows users to simply assign the template onto their
constructor.
This is especially useful for TypeScript, which compiles "static
template = foo" to "MyClass.template = foo".
2018-08-09 16:57:27 -07:00
Tim van der Lippe
b94c28aa23
Merge branch 'master' into strict-template-policy
2018-08-02 11:25:25 +02:00
Kevin Schaaf
10d657b388
Back to single template getter. Add more comments.
2018-07-25 16:19:11 -07:00
Kevin Schaaf
c4b94a02d1
Revert to legacy template getter, update tests.
2018-07-24 11:48:02 -07:00
Kevin Schaaf
376f44c4d2
More updates based on code review.
2018-07-23 22:48:25 -07:00
Kevin Schaaf
367273794d
Fix allowTemplateFromDomModule opt-in
2018-07-23 10:18:50 -07:00
Kevin Schaaf
a199aa912e
Fix lint warnings.
2018-07-23 09:48:04 -07:00
Alexander Marks
fa58519c9a
Annotate some internal classes as private.
2018-07-20 21:45:35 -07:00
Kevin Schaaf
36c4dfa99f
Updates based on code review.
2018-07-20 20:33:02 -07:00
Kevin Schaaf
8667b8955a
Use setting via setStrictTemplatePolicy export.
2018-07-17 17:42:46 -07:00
Kevin Schaaf
2e6df0ee0d
Implement opt-in strictTemplatePolicy (flag TBD)
...
- disable dom-bind
- disable dom-module template lookup
- disable templatizer of templates not stamped in trusted polymer template
2018-07-17 17:42:45 -07:00
Westbrook Johnson
31e5d058bb
Update template docs ( #5233 )
...
In support of #5222 , this updated the `template()` documentation so that it no longer lists support for `typeof template === 'string'` types.
2018-05-15 21:24:57 +02:00
Kevin Schaaf
ba4491d558
Removing support for returning strings from template getter.
...
(Per previous documented deprecation: https://www.polymer-project.org/2.0/docs/devguide/dom-template#templateobject )
2018-05-08 12:29:01 -07:00
Peter Burns
ab103dc142
Improve documentation and legibility.
...
- Did a pass for every place we were writing `Polymer.foo`.
- Basic cleanup of a number of places for legibility by both humans and polymer-analyzer.
2018-04-23 17:36:41 -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