diff --git a/tns-core-modules/ui/core/properties.ts b/tns-core-modules/ui/core/properties.ts index 687989a0e..4640b2f3e 100644 --- a/tns-core-modules/ui/core/properties.ts +++ b/tns-core-modules/ui/core/properties.ts @@ -546,7 +546,7 @@ export class CssProperty { } export class InheritedCssProperty extends CssProperty { - public setInhertiedValue: (value: U) => void; + public setInheritedValue: (value: U) => void; constructor(options: CssPropertyOptions) { super(options); @@ -662,7 +662,7 @@ export class InheritedCssProperty extends CssProperty const setDefaultFunc = setFunc(ValueSource.Default); const setInheritedFunc = setFunc(ValueSource.Inherited); - this.setInhertiedValue = setInheritedFunc; + this.setInheritedValue = setInheritedFunc; this.cssValueDescriptor.set = setFunc(ValueSource.Css); this.localValueDescriptor.set = setFunc(ValueSource.Local); @@ -829,7 +829,7 @@ export function clearInheritedProperties(view: ViewBase): void { for (let prop of inheritableCssProperties) { const sourceKey = prop.sourceKey; if (style[sourceKey] === ValueSource.Inherited) { - prop.setInhertiedValue.call(style, unsetValue); + prop.setInheritedValue.call(style, unsetValue); } } } @@ -878,7 +878,7 @@ export function propagateInheritedProperties(view: ViewBase): void { const style = child.style; const currentValueSource: number = style[sourceKey] || ValueSource.Default; if (currentValueSource <= ValueSource.Inherited) { - prop.setInhertiedValue.call(style, pair.value, ValueSource.Inherited); + prop.setInheritedValue.call(style, pair.value, ValueSource.Inherited); } return true; } diff --git a/tns-core-modules/ui/repeater/repeater.ts b/tns-core-modules/ui/repeater/repeater.ts index ab6b17b14..0da5a10e0 100644 --- a/tns-core-modules/ui/repeater/repeater.ts +++ b/tns-core-modules/ui/repeater/repeater.ts @@ -150,15 +150,15 @@ itemsProperty.register(Repeater); export const itemsLayoutProperty = new Property({ name: "itemsLayout", affectsLayout: true, valueChanged: (target, oldValue, newValue) => { if (oldValue) { - this._removeView(oldValue); + target._removeView(oldValue); oldValue.removeChildren(); } if (newValue) { - this._addView(newValue); + target._addView(newValue); } - this._requestRefresh(); + target._requestRefresh(); } }); itemsLayoutProperty.register(Repeater); \ No newline at end of file