mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix TypeScript 1.8 compile errors. Get rid of "ui" imports.
This commit is contained in:
@@ -264,7 +264,6 @@ export class Animation extends common.Animation implements definition.Animation
|
||||
|
||||
default:
|
||||
throw new Error("Cannot animate " + propertyAnimation.property);
|
||||
break;
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
|
||||
@@ -57,7 +57,6 @@ export class EditableTextBase extends common.EditableTextBase {
|
||||
break;
|
||||
default:
|
||||
throw new Error("Invalid updateTextTrigger: " + owner.updateTextTrigger);
|
||||
break;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -228,7 +228,6 @@ class CssCompositeSelector extends CssSelector {
|
||||
}
|
||||
if (!result) {
|
||||
break;
|
||||
return result;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
@@ -282,11 +281,9 @@ function matchesAttr(attrExpression: string, view: view.View): boolean {
|
||||
break;
|
||||
}
|
||||
return !types.isNullOrUndefined(view[attrName]) && attrCheckRegex.test(view[attrName]+"");
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
return !types.isNullOrUndefined(view[attrExpression]);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
export class CssVisualStateSelector extends CssSelector {
|
||||
|
||||
Reference in New Issue
Block a user