• Elliott Sprehn's avatar
    Don't set expression attributes before they're bound. · 0b73de95
    Elliott Sprehn authored
    We were cloning elements with all the attributes that contained
    expressions like attrName="{{ foo }}" which meant we'd go through the
    reflection process converting that value and also call the
    attrNameChanged() callback and the attributeChanged() with the braced
    string which the element didn't really want to know about.
    
    After this patch we create a "clone source node" which is a copy of the
    original element without the attributes that have the expressions and
    use that when cloning, then we assign the properties using data binding
    later.
    
    R=abarth@chromium.org, ojan@chromium.org
    
    Review URL: https://codereview.chromium.org/868973002
    0b73de95
index.sky 2.51 KB