Bug correction Data.type undefined between 2 attributeChangeCallback

This commit is contained in:
devingfx 2018-07-10 01:45:11 +02:00
parent 8bf5093ba7
commit 369bdb9080
1 changed files with 2 additions and 0 deletions

2
ui.js
View File

@ -79,7 +79,9 @@ class Data extends UI {
attributeChangedCallback(name, oldValue, newValue)
{
if( newValue == null ) return
console.log(arguments)
if( newValue != null && this._value && CC['buffer2'+this.type] )
this.shadowRoot.$`textarea`.value = CC['buffer2'+this.type]( this._value )
else if( this.type == 'frame' )