add refresh method

This commit is contained in:
yuanchuan 2017-02-27 16:15:51 +08:00
parent 2069df7469
commit e642911fc6
2 changed files with 8 additions and 0 deletions

View File

@ -672,6 +672,10 @@ class Doodle extends HTMLElement {
this.innerHTML = styles;
}
refresh() {
this.update(this.innerHTML);
}
get grid() {
return Object.assign({}, this.size);
}

View File

@ -122,6 +122,10 @@ class Doodle extends HTMLElement {
this.innerHTML = styles;
}
refresh() {
this.update(this.innerHTML);
}
get grid() {
return Object.assign({}, this.size);
}