fix subtitles in ms edge
This commit is contained in:
parent
71811cb9e3
commit
4f48507a2d
12 changed files with 231 additions and 25 deletions
|
@ -46,8 +46,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
properties: {
|
||||
|
||||
/**
|
||||
* If you want to use the attribute value of an element for `selected` instead of the index,
|
||||
* set this to the name of the attribute.
|
||||
* If you want to use an attribute value or property of an element for
|
||||
* `selected` instead of the index, set this to the name of the attribute
|
||||
* or property. Hyphenated values are converted to camel case when used to
|
||||
* look up the property of a selectable element. Camel cased values are
|
||||
* *not* converted to hyphenated values for attribute lookup. It's
|
||||
* recommended that you provide the hyphenated form of the name so that
|
||||
* selection works in both cases. (Use `attr-or-property-name` instead of
|
||||
* `attrOrPropertyName`.)
|
||||
*/
|
||||
attrForSelected: {
|
||||
type: String,
|
||||
|
@ -288,7 +294,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
|||
},
|
||||
|
||||
_valueForItem: function(item) {
|
||||
var propValue = item[this.attrForSelected];
|
||||
var propValue = item[Polymer.CaseMap.dashToCamelCase(this.attrForSelected)];
|
||||
return propValue != undefined ? propValue : item.getAttribute(this.attrForSelected);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue