Last active
April 3, 2019 04:04
-
-
Save pinguxx/4a838908d7ed6613a92e1753f9055a43 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
attributeChangedCallback(name, oldValue, newValue) { | |
this.update(true); | |
} | |
set data(data) { | |
this._data = data; | |
this.update(false); | |
} | |
get data() { | |
return this._data; | |
} | |
set options(ops) { | |
this._options = ops; | |
this.update(false); | |
} | |
get options() { | |
return this._options; | |
} | |
set details(obj) { | |
this._data = obj.data; | |
this._options = obj.options; | |
this.update(false); | |
} | |
get details() { | |
return { | |
data: this._data, | |
options: this._options | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment