Bug correction Data.type undefined between 2 attributeChangeCallback
This commit is contained in:
parent
8bf5093ba7
commit
369bdb9080
2
ui.js
2
ui.js
|
@ -79,7 +79,9 @@ class Data extends UI {
|
||||||
|
|
||||||
attributeChangedCallback(name, oldValue, newValue)
|
attributeChangedCallback(name, oldValue, newValue)
|
||||||
{
|
{
|
||||||
|
if( newValue == null ) return
|
||||||
console.log(arguments)
|
console.log(arguments)
|
||||||
|
|
||||||
if( newValue != null && this._value && CC['buffer2'+this.type] )
|
if( newValue != null && this._value && CC['buffer2'+this.type] )
|
||||||
this.shadowRoot.$`textarea`.value = CC['buffer2'+this.type]( this._value )
|
this.shadowRoot.$`textarea`.value = CC['buffer2'+this.type]( this._value )
|
||||||
else if( this.type == 'frame' )
|
else if( this.type == 'frame' )
|
||||||
|
|
Loading…
Reference in New Issue