mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +08:00
chore(animation): fix type error
This commit is contained in:
@ -208,11 +208,11 @@ export class Animation {
|
|||||||
this._bfRmv.push(className);
|
this._bfRmv.push(className);
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
setStyles: (styles): Animation => {
|
setStyles: (styles: any): Animation => {
|
||||||
this._bfSty = styles;
|
this._bfSty = styles;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
clearStyles: (propertyNames: Array<string>) => {
|
clearStyles: (propertyNames: Array<string>): Animation => {
|
||||||
for (var i = 0; i < propertyNames.length; i++) {
|
for (var i = 0; i < propertyNames.length; i++) {
|
||||||
this._bfSty[propertyNames[i]] = '';
|
this._bfSty[propertyNames[i]] = '';
|
||||||
}
|
}
|
||||||
@ -235,7 +235,7 @@ export class Animation {
|
|||||||
this._afSty = styles;
|
this._afSty = styles;
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
clearStyles: (propertyNames: Array<string>) => {
|
clearStyles: (propertyNames: Array<string>): Animation => {
|
||||||
for (var i = 0; i < propertyNames.length; i++) {
|
for (var i = 0; i < propertyNames.length; i++) {
|
||||||
this._afSty[propertyNames[i]] = '';
|
this._afSty[propertyNames[i]] = '';
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user