Rollback raw thing

This commit is contained in:
Max Lynch
2015-05-04 16:05:55 -05:00
parent 29c94bb403
commit f314d44b90
3 changed files with 16 additions and 7 deletions

View File

@ -59,12 +59,15 @@ export class IonicComponent {
}
}
// TODO: This worked fine for property-only buttons, but breaks with
// class, etc.
//
// If we want to enhance a raw element (for example, a button),
// only do it if we also have a matching prop class
if(!foundMatchingPropClass && this.enhanceRawElement) {
//if(!foundMatchingPropClass && this.enhanceRawElement) {
// Don't enhace this raw element
return;
}
//return;
//}
// Add the base element classes (ex, button and button-ios)
dom.addClasses(instance.domElement, this.componentCssName, `${this.componentCssName}-${platformMode}`);