Hi Piotr,

For me, parent is not undefined when the new value of snippetBackground is 
being applied.  The first time I debugged through the code it looked like was 
undefined, but when I stepped through the parent getter it returned a valid 
result.  I'm not sure if we can trust the value tooltips for our getters.

I think the problem is that I did not upgrade the className implementation in 
MDL when I updated UIBase and the Jewel code.  MDL is still using the ClassList 
class and it should probably do what Jewel is doing and use ClassSelectorList 
instead.   I think if that works for MDL then we can drop ClassList from the 
code base.

I would like you to do the upgrade since it will be easier for you to test it 
and make any further adjustments.

Thanks,
-Alex

On 4/28/18, 10:02 PM, "Alex Harui" <[email protected]> wrote:

    I will look into it.
    
    On 4/28/18, 2:08 PM, "Carlos Rovira" <[email protected]> wrote:
    
        Sorry but as I said I'm few days off so I can't look at it. Hope you can
        see the root of the problem since I was planning to use states in jewel
        example to do better organization of different examples
        
        
        El El sáb, 28 abr 2018 a las 9:58, Piotr Zarzycki 
<[email protected]>
        escribió:
        
        > Carlos,
        >
        > Any thoughts ? Maybe it make sense that parent is undefined since 
view is
        > changing state - it's not added yet to the parent. We should sort it 
out,
        > because I don't see any weird in my case. I'm just changing className
        > dynamically. :)
        >
        > Thanks, Piotr
        >
        > 2018-04-28 9:54 GMT+02:00 piotrz <[email protected]>:
        >
        > > DataBinding example is working fine, so it leads me to the className
        > > property
        > > in UIBase. I have setup break point and it looks like because 
this.parent
        > > is
        > > undefined className is not setup properly.
        > >
        > > Look into the screenshot. You can also setup breakpoint yourself to 
see
        > > results.
        > >
        > > 
<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble&data=02%7C01%7Caharui%40adobe.com%7Ceea3fd5a126e40aa7bc108d5ad4c3ba8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636605465381823797&sdata=xdPoaM1ogtS7DFJsUOUEtPIq%2BpSYKYKcLNNrqjC3yKs%3D&reserved=0.
        > > com/file/t1/parent_undefined.png>
        > >
        > > Why it is even checked ? It was part of latest changes ?
        > >
        > > Thanks,
        > > Piotr
        > >
        > >
        > >
        > > --
        > > Sent from: 
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-royale-development.20373.n8.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Ceea3fd5a126e40aa7bc108d5ad4c3ba8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636605465381823797&sdata=G4tLoCptxaRSh%2BPZfCMahadW3RCiHPTH918xG5%2FO3Q0%3D&reserved=0
        > >
        >
        >
        >
        > --
        >
        > Piotr Zarzycki
        >
        > Patreon: 
*https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Ceea3fd5a126e40aa7bc108d5ad4c3ba8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636605465381823797&sdata=Sk%2BnEHPqRyaQ7vYVSeTnif0tactznUV1PxtqHn8kobg%3D&reserved=0
        > 
<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.patreon.com%2Fpiotrzarzycki&data=02%7C01%7Caharui%40adobe.com%7Ceea3fd5a126e40aa7bc108d5ad4c3ba8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636605465381823797&sdata=Sk%2BnEHPqRyaQ7vYVSeTnif0tactznUV1PxtqHn8kobg%3D&reserved=0>*
        >
        -- 
        Carlos Rovira
        
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabout.me%2Fcarlosrovira&data=02%7C01%7Caharui%40adobe.com%7Ceea3fd5a126e40aa7bc108d5ad4c3ba8%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636605465381823797&sdata=LZQiGYiUknrmz7QOfTTLJheSdn3cm3XceN95hVidJv4%3D&reserved=0
        
    
    

Reply via email to