mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
chore: Proper variable naming for font variation
This commit is contained in:

committed by
Nathan Walker

parent
8726d026fe
commit
6968997d9d
@ -1067,7 +1067,7 @@ export abstract class ViewBase extends Observable implements ViewBaseDefinition
|
||||
* Clean up references to the native view.
|
||||
*/
|
||||
public disposeNativeView() {
|
||||
// Unset those values so that view will check for resize after being removed and re-added to view-tree
|
||||
// Unset those values so that view checks for resize the next time it's added back to view tree
|
||||
this._oldLeft = 0;
|
||||
this._oldTop = 0;
|
||||
this._oldRight = 0;
|
||||
|
@ -83,10 +83,10 @@ export namespace FontVariationSettings {
|
||||
return null;
|
||||
}
|
||||
|
||||
const allowedValues = ['normal', 'inherit', 'initial', 'revert', 'revert-layer', 'unset'];
|
||||
const excluded = ['normal', 'inherit', 'initial', 'revert', 'revert-layer', 'unset'];
|
||||
const variationSettingsValue: string = fontVariationSettings.trim();
|
||||
|
||||
if (allowedValues.indexOf(variationSettingsValue.toLowerCase()) !== -1) {
|
||||
if (excluded.indexOf(variationSettingsValue.toLowerCase()) !== -1) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user