File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 266266 is : 'basic-item-selection' ,
267267
268268 properties : {
269+
270+ selectedIndex : {
271+ type : Number
272+ } ,
273+
274+ selectedItem : {
275+ type : Object
276+ } ,
277+
269278 selectionRequired : {
270279 type : Boolean ,
271280 observer : 'selectionRequiredChanged' ,
272281 value : false
273282 }
283+
274284 } ,
275285
276286 selectFirst : function ( ) {
294304 } ,
295305
296306 get selectedIndex ( ) {
297- return this . collective . selectedIndex ;
307+ // HACK: Proxied getter/setter properties like this one can't be set via
308+ // attributes. See https://github.com/Polymer/polymer/issues/2454. We
309+ // currently hack around this by only returning a value for this property if
310+ // the element is ready. A negative side effect is that inspecting this
311+ // property before the element is ready will always return undefined.
312+ if ( this . _readied ) {
313+ return this . collective . selectedIndex ;
314+ }
298315 } ,
299316
300317 get selectedItem ( ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " basic-item-selection" ,
33 "description" : " Aspect which manages selection semantics for items in a list." ,
4- "version" : " 0.6.2 " ,
4+ "version" : " 0.6.3 " ,
55 "license" : " MIT" ,
66 "main" : " basic-item-selection.html" ,
77 "dependencies" : {
8- "basic-aspect" : " basic-web-components/basic-aspect#0.6.2 " ,
8+ "basic-aspect" : " basic-web-components/basic-aspect#0.6.3 " ,
99 "polymer" : " Polymer/polymer#^1.1"
1010 },
1111 "devDependencies" : {
12- "basic-framed-content" : " basic-web-components/basic-framed-content#0.6.2 " ,
12+ "basic-framed-content" : " basic-web-components/basic-framed-content#0.6.3 " ,
1313 "web-component-tester" : " *"
1414 },
1515 "keywords" : [
You can’t perform that action at this time.
0 commit comments