mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
refactor: replace var usage with let/const (#7064)
This commit is contained in:
@@ -1100,7 +1100,7 @@ export const initNativeView = profile("\"properties\".initNativeView", function
|
||||
export function applyPendingNativeSetters(view: ViewBase): void {
|
||||
// TODO: Check what happens if a view was suspended and its value was reset, or set back to default!
|
||||
const suspendedUpdates = view._suspendedUpdates;
|
||||
for (var propertyName in suspendedUpdates) {
|
||||
for (let propertyName in suspendedUpdates) {
|
||||
const property = <PropertyInterface>suspendedUpdates[propertyName];
|
||||
const setNative = property.setNative;
|
||||
if (view[setNative]) {
|
||||
@@ -1305,7 +1305,7 @@ export function getSetProperties(view: ViewBase): [string, any][] {
|
||||
export function getComputedCssValues(view: ViewBase): [string, any][] {
|
||||
const result = [];
|
||||
const style = view.style;
|
||||
for (var prop of cssPropertyNames) {
|
||||
for (let prop of cssPropertyNames) {
|
||||
result.push([prop, style[prop]]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user