Commit Graph

345 Commits

Author SHA1 Message Date
Steve Orvell
9081d77d3b Merge pull request #4221 from Polymer/2.0-data-updates
2.0 data updates
2016-12-19 18:33:12 -08:00
Kevin Schaaf
0afe198f4d Allow _shouldPropertyChange to be overridden and made more strict.
(removes crufty smoke tests, adds one for dirty checking)
2016-12-19 17:58:33 -08:00
Kevin Schaaf
dd636804d2 Add Polymer.sanitizeDOMValue && tests. 2016-12-19 11:47:30 -08:00
Monica Dinculescu
2ca0529055 replace CustomElements.takeRecords with customElements.flush 2016-12-15 16:08:13 -08:00
Kevin Schaaf
105c1a99c5 Add comments 2016-12-14 12:12:47 -08:00
Kevin Schaaf
acd588d082 Fold batched-effects into property-effects. 2016-12-09 12:15:07 -08:00
Kevin Schaaf
dbb55f0ca0 Minor cleanup. 2016-12-08 12:27:56 -08:00
Kevin Schaaf
179aa77785 Use temporary cache for object dirty checking. 2016-12-07 10:06:20 -08:00
Kevin Schaaf
a52603329e Use temporary cache for paths. 2016-12-07 10:06:20 -08:00
Kevin Schaaf
4a8692c8ce Remove path caching, revert object dirty checking. Tests wip. 2016-12-07 10:06:20 -08:00
Steven Orvell
5e6fd42f9a make test faster on IOS simulator 2016-12-01 11:05:36 -08:00
Kevin Schaaf
6f131d80d2 Merge pull request #4184 from Polymer/2.0-preview-templatizer-props
Don't flush props if props aren't passed
2016-12-01 09:25:46 -08:00
Steven Orvell
98e57e405c Make tests more x-browser compatible; and importantly must use a task instead of a micro-task to test when a micro-task has completed 2016-11-30 11:13:29 -08:00
Emmanuel Garcia
02749a1d1c Don't flush props if props aren't passed 2016-11-29 15:43:40 -08:00
Daniel Freedman
80b088cc7e Logging Mixin for Legacy Element
Fixes #3926

Also add tests for logging mixin
2016-11-16 11:10:54 -08:00
Steven Orvell
2daa262588 remove superfluous tests 2016-11-08 17:06:06 -08:00
Steven Orvell
0f8c2cb023 Include style-scoped test from Polymer 1.x 2016-11-07 17:45:47 -08:00
Steven Orvell
c49c3f3a16 Test fixes for polyfilled environments: shadydom + shimmed css properties. 2016-11-07 16:42:51 -08:00
Steven Orvell
f195676f1e Test shimmed css properties; economize test configurations preferring only 1 polyfilled environment where necessary. 2016-11-07 16:42:15 -08:00
Daniel Freedman
776b577eb7 Merge pull request #4119 from Polymer/reset-mouse-canceller
Port Polymer 1.7.x gesture features to 2.0-preview
2016-11-04 15:35:09 -07:00
Steve Orvell
1fb795df00 Merge pull request #4127 from Polymer/activeElement-getter
`Polymer.dom(..).activeElement` gets `_activeElement` (ShadyDOM) if available.
2016-11-04 15:33:16 -07:00
Steven Orvell
39d7664a6a Fixes #4122: computed properties, once defined cannot be altered. The check used to determine if a property was computed was incorrect (instead checking the property was a dependency of another computed property). Now we simply check if the property has been made readOnly. Also added docs explaining the functionality and limitations of _createPropertyFromConfig. 2016-11-04 09:52:42 -07:00
Russell Bicknell
cb245f9c36 Polymer.dom(..).activeElement gets _activeElement (ShadyDOM) if available. 2016-11-03 11:26:38 -07:00
Daniel Freedman
8231bac807 flush on CE polyfill 2016-11-01 16:15:25 -07:00
Daniel Freedman
c0f0768a65 Include tests and minor fixes
Tests were already ported, but not being evaluated.
Fixed spelling error for removing events
Removed unused api in legacy class
Removed unused tests (unlisten for listeners block and on-* events)
2016-11-01 14:44:09 -07:00
Steven Orvell
4175a3802d Avoid calling ShadyDOM.flush in observeNodes. This was unnecessary and could cause an exception. Consider an element that calls observeNodes in connected and stores the returned observer and then calls unobserveNodes(observer) in disconnected. Since flush triggers distribution and under ShadyDOM this can cause disconnect/connect, this means a disconnectedCallback could run prior to observerNodes returning. 2016-10-28 15:52:40 -07:00
Kevin Schaaf
9ce6c31a66 Merge pull request #4091 from Polymer/4045-kschaaf-move-importhref
Move importHref to Polymer.Utils, facade to LegacyElement. Fixes #4045
2016-10-27 14:54:35 -07:00
Kevin Schaaf
c240946a42 Merge pull request #4090 from Polymer/3992-kschaaf-class-resolveurl
Move resolveUrl to Polymer.Element, get `is` from ctor. Fixes #3992
2016-10-27 14:54:05 -07:00
Kevin Schaaf
2f9795cf21 Merge pull request #4082 from Polymer/4066-kschaaf-shorthand-types
Upgrade shorthand type to {type:Type} when flattening. Fixes #4066.
2016-10-27 14:52:52 -07:00
Kevin Schaaf
b8cd0e9064 Merge pull request #4079 from Polymer/4078-kschaaf-legacy-template
Look for `_template` in legacy API's template getter. Fixes #4078.
2016-10-27 14:52:21 -07:00
Kevin Schaaf
f3a9091705 Fix clearing propagate effects when binding new template. Fixes #4098 2016-10-27 13:46:41 -07:00
Kevin Schaaf
eb54846171 Look for _template in legacy API's template getter. Fixes #4078. 2016-10-27 13:30:37 -07:00
Kevin Schaaf
8b3d08a375 Upgrade shorthand type to {type:Type} when flattening. Fixes #4066. 2016-10-27 13:29:06 -07:00
Kevin Schaaf
6fe6a755e1 Move resolveUrl to Polymer.Element, get is from ctor. Fixes #3992 2016-10-27 13:27:10 -07:00
Kevin Schaaf
d50335d4ee Move importHref to Polymer.Utils, facade to LegacyElement. Fixes #4045 2016-10-24 18:09:27 -07:00
Steve Orvell
bf6f9df0a1 Merge pull request #4063 from Polymer/4016-kschaaf-templatizer-listeners
Add gesture support and e.model to templatizer event handling. Fixes #4016.
2016-10-13 13:37:27 -07:00
Steve Orvell
ce6299dfce Merge pull request #4064 from Polymer/3931-kschaaf-linkPaths-computed
Lazily create & return computedProps if necessary. Fixes #3931.
2016-10-13 13:36:55 -07:00
Kevin Schaaf
50189c0919 Add gestures. Decorate model. Fixes #4016. 2016-10-13 13:08:38 -07:00
Steve Orvell
4e45e329a4 Merge pull request #4056 from Polymer/4044-kschaaf-late-binding
Queue accessor value on instance. Fixes #4044.
2016-10-13 13:05:19 -07:00
Steve Orvell
c22dbe095e Merge pull request #4055 from Polymer/templatizer-fix-tests
Fix rootDataHost. Add templatizer tests. Rename to Templatizer.flush.
2016-10-13 11:38:09 -07:00
Kevin Schaaf
5d65389fc6 Lazily create & return computedProps if necessary. Fixes #3931. 2016-10-12 17:00:41 -07:00
Kevin Schaaf
426a4b7f6c Set pending properties for any accessor values; user should flush. 2016-10-11 21:53:09 -07:00
Kevin Schaaf
e41462d19c Add test for adding instance-time property effect. 2016-10-11 21:40:48 -07:00
Steve Orvell
6e4c9e7c0f Merge pull request #4057 from Polymer/3998-kschaaf-clear-paths
Clear paths upon object invalidation. Fixes #3998.
2016-10-11 18:14:05 -07:00
Kevin Schaaf
84bf09ffef Clear paths upon object invalidation. Fixes #3998. 2016-10-10 17:18:56 -07:00
Kevin Schaaf
2880e1cf40 Add property argument to _shouldPropChange. 2016-10-10 14:23:01 -07:00
Kevin Schaaf
746cddb10a Fix rootDataHost. Add templatizer tests. Rename to Templatizer.flush. 2016-10-10 14:15:23 -07:00
Kevin Schaaf
7457da10c0 Integrate dom-bind tests. 2016-10-10 12:59:43 -07:00
Elliott Marquez
890a3da7dd content -> slot 2016-10-10 12:59:43 -07:00
Elliott Marquez
410b325846 Even LESS one-char-vars 2016-10-10 12:59:43 -07:00