mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Merge branch 'master' into alpha38
Conflicts: ionic/components/nav/view-controller.ts ionic/components/tabs/tab.ts
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Directive, ElementRef} from 'angular2/angular2';
|
||||
import {Directive, ElementRef, Renderer} from 'angular2/angular2';
|
||||
|
||||
import {IonicConfig} from '../../config/config';
|
||||
|
||||
@@ -13,7 +13,8 @@ export class Button {
|
||||
|
||||
constructor(
|
||||
config: IonicConfig,
|
||||
elementRef: ElementRef
|
||||
elementRef: ElementRef,
|
||||
renderer: Renderer
|
||||
) {
|
||||
let element = elementRef.nativeElement;
|
||||
|
||||
@@ -21,6 +22,12 @@ export class Button {
|
||||
element.classList.add('disable-hover');
|
||||
}
|
||||
|
||||
// TODO this isn't working in the popup
|
||||
if (element.hasAttribute('type')) {
|
||||
let type = element.getAttribute("type");
|
||||
renderer.setElementAttribute(elementRef, type, "");
|
||||
}
|
||||
|
||||
if (element.hasAttribute('ion-item')) {
|
||||
// no need to put on these icon classes for an ion-item
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user