add refresh method
This commit is contained in:
parent
2069df7469
commit
e642911fc6
|
|
@ -672,6 +672,10 @@ class Doodle extends HTMLElement {
|
|||
this.innerHTML = styles;
|
||||
}
|
||||
|
||||
refresh() {
|
||||
this.update(this.innerHTML);
|
||||
}
|
||||
|
||||
get grid() {
|
||||
return Object.assign({}, this.size);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,6 +122,10 @@ class Doodle extends HTMLElement {
|
|||
this.innerHTML = styles;
|
||||
}
|
||||
|
||||
refresh() {
|
||||
this.update(this.innerHTML);
|
||||
}
|
||||
|
||||
get grid() {
|
||||
return Object.assign({}, this.size);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue