Kevin Schaaf
2f1bd31d4e
Replace _compoundInitializationEffect with statically-initialized literals in the template for attributes & textContent, and by configuring literal values of properties in _configureAnnotationReferences.
2015-10-13 00:13:25 -07:00
Kevin Schaaf
c30ac10e56
Apply effect value from compound parts.
2015-10-09 17:19:20 -07:00
Nazar Mokrynskyi
1a87ab4c4f
Moved check earlier.
...
Added test for negative literal.
2015-08-18 20:11:22 +02:00
Nazar Mokrynskyi
fc53f50c3e
Support for negative numbers in computed bindings
2015-08-17 02:06:30 +02:00
Steven Orvell
7560130a15
Fix #2107 : improve binding expression parser to match valid javascript property names.
2015-07-17 18:50:11 -07:00
Steven Orvell
312d11fb6d
Fixes #2077 : workaround IE text node splitting issue that can make text bindings fail.
2015-07-14 11:03:19 -07:00
Kevin Schaaf
980f22e6a8
Don't create private setter for computed properties. Fixes #2016 .
2015-07-09 10:21:41 -07:00
Kevin Schaaf
20b8fc22a9
Actually make computed readOnly:true. Add more tests.
2015-06-24 15:56:50 -07:00
Kevin Schaaf
c7fec1c0a8
Disambiguate config fromAbove and local defaults, pass to _setProperty.
...
- Fixes bug in previous fix for #1839/#1854 where notifying properties would not notify during configuration
- renames `_setPropertyQuiet` to `_setProperty` with `quiet` arg
- renames `_propertySet` to `_propertySetter` for clarity
2015-06-22 16:50:21 -07:00
Daniel Freedman
48edb325af
Handle NaN in bindings
...
Make our own equality check for NaN that uses the identity-check failure
Fixes #1799
2015-06-10 14:25:05 -07:00
Kevin Schaaf
033c5bb8c8
Add tests for errors/warnings.
2015-05-25 17:47:38 -07:00
Kevin Schaaf
ed9367f7fd
Clear input.value attribute before removing for IE. Fixes #1491 . Fixes #1578 .
2015-05-22 15:39:35 -07:00
Kevin Schaaf
98d8908d6a
Merge pull request #1577 from Polymer/literal-args-comma-fix
...
Literal args comma fix
2015-05-22 15:07:35 -07:00
Kevin Schaaf
40a957896d
Add corrected computedFromTrickyLiterals2 test.
2015-05-22 15:04:51 -07:00
Kevin Schaaf
c00134435c
Accept no-arg computed fns as static. Fixes #1516 .
2015-05-22 12:59:03 -07:00
Steven Orvell
a640b7e141
Fixes #1311
2015-05-21 19:39:49 -07:00
Scott J Miles
42eaedd172
* remove bogus support for arbitrary JSON in literal arguments, literal arguments must now be either String or Number
...
* support using escaped-commas in literal-string arguments: `compute("foo\,bar", zot, 3)`
* support other character escaping which is naturally broken by HTML parser `compute('foo\'bar')`
* test for literal argument _before_ looking for structured args
2015-05-20 16:12:50 -07:00
Scott J Miles
0fe9fe759f
rudimentary test for a static effect (annotated computation with only literal arguments)
2015-05-20 16:06:10 -07:00
Scott J Miles
3fd8fbb973
basic test for computed expression containing literal args (must also contain at least one push dependency at this time)
2015-05-20 15:58:34 -07:00
Kevin Schaaf
cdecff422c
Avoid undefined in textContent
2015-05-20 11:24:53 -07:00
Scott J Miles
2efcb601a9
test for {{!computed(prop)}}
2015-05-13 11:22:31 -07:00
Scott J Miles
12513df2e1
don't trap id for marshalling if it's a binding directive + test
2015-05-01 10:52:52 -07:00
Kevin Schaaf
4369e724ed
Support paths in all effects. Add tests and docs.
2015-04-16 23:45:00 -07:00
Kevin Schaaf
a712acc26a
Add test for dashed attribute binding.
2015-04-09 18:48:55 -07:00
Kevin Schaaf
835253c8ab
Add test for custom event notification.
2015-04-01 13:00:59 -07:00
Steve Orvell
0c3ac51ddf
Add test for ready time shadowdom notification fix.
2015-03-23 13:32:02 -07:00
Kevin Schaaf
cd362bb891
Avoid non-bubbling event gotchas with binding.
2015-03-19 17:55:41 -07:00
Kevin Schaaf
1c9fe35071
Remove special case style binding mapping to cssText
2015-03-19 14:51:04 -07:00
Kevin Schaaf
ce89077914
Add inline computed fn support for annotated bindings.
2015-03-16 16:12:09 -07:00
Kevin Schaaf
c7e101a202
Rename reflect -> reflectToAttribute.
2015-03-13 13:48:26 -07:00
Kevin Schaaf
2ec47acbac
Merge branch '0.8-preview' into unique-comp-props
...
Conflicts:
test/unit/bind-elements.html
2015-03-04 21:09:32 -08:00
Kevin Schaaf
0158c794bc
Rename propertyConfig -> properties.
2015-03-04 18:39:01 -08:00
Ross Allen
d028277f4c
Add test for comp values to same method
...
The test fails without the other change in this branch.
2015-03-02 15:43:15 -08:00
Kevin Schaaf
bee4ee4285
Add computed to propertyConfig, rename bind->observers. Remove published BC.
2015-03-02 15:41:40 -08:00
Kevin Schaaf
9d5ee38f02
Add debounced multiple computed property support.
2015-02-23 20:04:16 -08:00
Scott J. Miles
bc7a23ff29
test dash-case for serializing
2015-02-09 18:35:03 -08:00
Scott J. Miles
dff3b89bb6
add dash-case awareness to tests
2015-02-09 18:13:58 -08:00
Kevin Schaaf
3f95fe3ef2
Add attribute binding. attribute$="{{property}}"
2015-01-28 13:02:43 -08:00
Kevin Schaaf
1807d8656e
Add reflect support.
...
Conflicts:
src/features/standard/bind.html
2015-01-23 18:08:37 -08:00
Kevin Schaaf
be6f676a1c
Add readOnly support.
2015-01-23 17:52:19 -08:00
Steve Orvell
39c68fb5d1
Name an element via is; remove support for name and tag
2015-01-14 15:10:11 -08:00
Kevin Schaaf
cdae3e35c8
Add negation test and fix tests for x-plat.
2015-01-14 12:36:47 -08:00