mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(animation): ele as string selector
This commit is contained in:
committed by
Adam Bradley
parent
b19547c9a8
commit
9fa31a1ec8
@@ -68,13 +68,13 @@ export class Animation {
|
||||
var i: number;
|
||||
|
||||
if (ele) {
|
||||
if (ele.length) {
|
||||
if (typeof ele === 'string') {
|
||||
ele = document.querySelectorAll(ele);
|
||||
for (i = 0; i < ele.length; i++) {
|
||||
this._addEle(ele[i]);
|
||||
}
|
||||
|
||||
} else if (typeof ele === 'string') {
|
||||
ele = document.querySelectorAll(ele);
|
||||
} else if (ele.length) {
|
||||
for (i = 0; i < ele.length; i++) {
|
||||
this._addEle(ele[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user