refactor(buttons): don't set button type attribute from buttons

this is duplicated code, it is already set in toolbar
This commit is contained in:
Brandy Carney
2018-02-01 12:22:51 -05:00
parent b4854eac87
commit 7c5223f856

View File

@@ -1,4 +1,4 @@
import { Component, Element } from '@stencil/core';
import { Component } from '@stencil/core';
@Component({
@@ -8,15 +8,6 @@ import { Component, Element } from '@stencil/core';
}
})
export class Buttons {
@Element() private el: HTMLElement;
componentDidLoad() {
const buttons = this.el.querySelectorAll('ion-button') as any;
for (let i = 0; i < buttons.length; i++) {
buttons[i].setAttribute('button-type', 'bar-button');
}
}
render() {
return <slot></slot>;
}