mix format
This commit is contained in:
		| @@ -2,7 +2,7 @@ | |||||||
| // update. https://github.com/phoenixframework/phoenix_live_view/issues/1011 | // update. https://github.com/phoenixframework/phoenix_live_view/issues/1011 | ||||||
|  |  | ||||||
| export default { | export default { | ||||||
|   attrs(){ return this.el.getAttribute("data-attrs").split(", ") }, |   attrs () { return this.el.getAttribute('data-attrs').split(', ') }, | ||||||
|   beforeUpdate(){ this.prevAttrs = this.attrs().map(name => [name, this.el.getAttribute(name)]) }, |   beforeUpdate () { this.prevAttrs = this.attrs().map(name => [name, this.el.getAttribute(name)]) }, | ||||||
|   updated(){ this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) } |   updated () { this.prevAttrs.forEach(([name, val]) => this.el.setAttribute(name, val)) } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user