在我们的聚合物1.0组件中,我们有:
attached: function ()
{
var something=this.getComputedStyleValue("--flxs-" + prop)
this.async(function()
{
// do some work here.
});
}
在2.0中,未定义this.getComputedStyleValue this.async。
知道替代方案是什么?
答案 0 :(得分:1)
Polymer.Async似乎是this.async
的替代品。
对于getComputedStyleValue
,您可以尝试StyleGather,但我怀疑它是否有效。
否则,LegacyMixin包含所有旧方法。