Kevin Schaaf
6d63613860
Remove unused @method
2017-04-14 15:00:27 -07:00
Kevin Schaaf
8cab18b15d
Standardize @return, @param, type case.
2017-04-14 14:39:00 -07:00
Kevin Schaaf
8a11c8c3f3
Fix jsdoc issues.
2017-04-14 12:16:35 -07:00
Kevin Schaaf
cd321a3b61
Merge branch 'master' into 2.0-binding-api-refactor
2017-04-13 09:48:25 -07:00
Daniel Freedman
2356f7b8f0
Only style elements with templates
...
dom-repeat and/or dom-if booting before custom-style is registered
can break the complicated loading strategy of ShadyCSS.
By only calling ShadyCSS for elements with templates, we both fix this
issue and improve performance for template-less element booting
Fixes #4521
2017-04-11 11:01:39 -07:00
Kevin Schaaf
6af84c45e9
Address feedback based on review.
...
* PropertyAccessors must call `_flushProperties` to enable
* Avoid tearing off oldProps (unnecessary)
* Add `addBinding` docs
* Merge notifyListeners into `setupBindings`
* Add comment re: path-bindings not being overridable
* Remove `dom` argument from `_bindTemplate`
* Rename `_stampBoundTemplate` back to `_stampTemplate`
2017-04-07 19:14:55 -07:00
Kevin Schaaf
03bed19dad
Put $ on dom, and assign to element as needed. Eliminate _templateInfo reference.
2017-04-07 16:12:56 -07:00
Kevin Schaaf
396c102c7c
Fix _hasAccessor for readOnly. Collapse addBinding & addBindingEffects
2017-04-07 16:12:20 -07:00
Kevin Schaaf
ea4e7d9708
Improvements to binding API:
...
- Adds override points for _parseBindings and _evaluateBinding
- Adds support for runtime template binding
- Moves ready(), _hasAccessor tracking, and instance property swizzle at ready time to PropertyAccessors
2017-04-07 16:12:20 -07:00
Steven Orvell
8467a696da
Fixes #4447 . Re-introduce the hostStack in order to maintain “client before host” ordering when _flushProperties is called before connectedCallback (e.g. as Templatize does).
2017-04-05 18:49:07 -07:00
Steven Orvell
e9c58addbf
* ensure element cannot return to “disabled” state after upgrading.
...
* ensure nested `beforeNextRender` calls always go before the next render
* ensure nested `afterNextRender` are called after additional renders
2017-03-17 12:19:44 +11:00
Steven Orvell
a222078e82
implements disable-upgrade attribute which prevents readying an element until the attribute is removed.
2017-03-08 16:46:35 -08:00
Steven Orvell
4ae65ba26f
[ci skip] minor doc edits.
2017-03-07 17:56:37 -08:00
Steven Orvell
58213ee611
update copyright date.
2017-03-03 16:54:36 -08:00
Daniel Freedman
b278977a67
enforce strictness tests
2017-03-03 16:03:45 -08:00
Kevin Schaaf
7f94a66cf8
Create a polymer element in globals tests.
2017-03-03 16:00:01 -08:00
Steven Orvell
83f0104403
var -> let and turn on lint rule.
2017-03-03 15:58:52 -08:00
Kevin Schaaf
98d56befda
Fix unintended usage of Polymer.Base. Replace Polymer.mixin with Object.assign.
2017-03-03 14:14:00 -08:00
Kevin Schaaf
e27d7294d6
Add property doc for Polymer.rootPath, move to element-mixim
2017-03-03 11:34:46 -08:00
Kevin Schaaf
139872dce8
Doc instance props isAttached, rootPath, importPath. Fix early rootPath. Fixes #3956
2017-03-03 11:21:26 -08:00
Steven Orvell
4538baaa54
Merge 2.0-preview and fix tests.
2017-03-02 19:02:41 -08:00
Steven Orvell
f21282a0ce
* importPath and rootPath should now include a trailing slash.
...
* `importPath` can now be a path fragment (e.g. `foo/`)
2017-03-02 17:38:43 -08:00
Kevin Schaaf
e14c755809
[ci skip] Fix doc typo
2017-03-02 02:37:22 -08:00
Steven Orvell
4a6e06d399
Fixes #4357 . Adds importPath and rootPath properties to Polymer.Element. The importPath property defaults to the path part of the url containing the dom-module matching the element's static is property. The rootPath property is set to the Polymer.rootPath property and defaults to the path part of the main document url. These properties can be used in bindings to url's. The importPath property is used to scope url's in element styles. [Note, this depends on https://github.com/webcomponents/html-imports/pull/44 ].
2017-03-01 19:37:17 -08:00
Steven Orvell
d75bbd9243
Merge branch '2.0-doc-annotations' into 2.0-connect-order
...
Conflicts:
src/mixins/element-mixin.html
2017-02-28 19:46:35 -08:00
Kevin Schaaf
e194d40afd
More API docs.
2017-02-28 17:07:32 -08:00
Kevin Schaaf
670fd68168
More API docs.
2017-02-28 16:19:24 -08:00
Steven Orvell
05a84da139
Update resolveUrl to take an optional base argument.
2017-02-28 12:20:32 -08:00
Daniel Freedman
155e3ffc4e
move src -> lib
2017-02-28 10:37:04 -08:00