From 369bdb9080a763aa6a4978f64f3130e6e420580f Mon Sep 17 00:00:00 2001 From: devingfx Date: Tue, 10 Jul 2018 01:45:11 +0200 Subject: [PATCH] Bug correction Data.type undefined between 2 attributeChangeCallback --- ui.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui.js b/ui.js index eebb81e..a64c0ad 100644 --- a/ui.js +++ b/ui.js @@ -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' )