chore(animation): fix ele querySelectorAll

This commit is contained in:
Adam Bradley
2016-02-21 12:26:47 -06:00
parent 7c27bcf6eb
commit 5302d63b54
3 changed files with 8 additions and 4 deletions

View File

@ -72,7 +72,7 @@ export class Animation {
}
} else if (typeof ele === 'string') {
ele = doc.querySelector(ele);
ele = doc.querySelectorAll(ele);
for (i = 0; i < ele.length; i++) {
this._addEle(ele[i]);
}

View File

@ -5,6 +5,8 @@ import {App, Page, Animation} from '../../../../../ionic/ionic';
templateUrl: 'main.html'
})
class E2EPage {
duration;
easing;
constructor() {
this.duration = '1000';
@ -25,6 +27,8 @@ class E2EPage {
template: '<ion-nav [root]="root"></ion-nav>'
})
class E2EApp {
root;
constructor() {
this.root = E2EPage;
}

View File

@ -19,9 +19,9 @@
<ion-item>
<ion-label>Easing</ion-label>
<ion-select [(ngModel)]="easing">
<ion-option value="linear"></ion-option>
<ion-option value="ease-in-out"></ion-option>
<ion-option value="cubic-bezier(0.36,0.66,0.04,1)"></ion-option>
<ion-option>linear</ion-option>
<ion-option>ease-in-out</ion-option>
<ion-option>cubic-bezier(0.36,0.66,0.04,1</ion-option>
</ion-select>
</ion-item>