mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 20:11:24 +08:00
Add a flag we can use to skip string template calcs in release
This commit is contained in:
@ -187,8 +187,10 @@ export class View extends viewCommon.View {
|
||||
if (!context) {
|
||||
throw new Error("Expected valid android.content.Context instance.");
|
||||
}
|
||||
|
||||
trace.write("calling _onAttached on view " + this._domId, trace.categories.VisualTreeEvents);
|
||||
|
||||
if (trace.enabled) {
|
||||
trace.write("calling _onAttached on view " + this._domId, trace.categories.VisualTreeEvents);
|
||||
}
|
||||
|
||||
if (this._context === context) {
|
||||
return;
|
||||
@ -234,7 +236,9 @@ export class View extends viewCommon.View {
|
||||
this._eachChildView(eachChild);
|
||||
}
|
||||
|
||||
trace.write("calling _onDetached on view " + this._domId, trace.categories.VisualTreeEvents);
|
||||
if (trace.enabled) {
|
||||
trace.write("calling _onDetached on view " + this._domId, trace.categories.VisualTreeEvents);
|
||||
}
|
||||
|
||||
this._clearAndroidReference();
|
||||
|
||||
@ -260,7 +264,9 @@ export class View extends viewCommon.View {
|
||||
}
|
||||
|
||||
public _onContextChanged() {
|
||||
trace.write("calling _onContextChanged on view " + this._domId, trace.categories.VisualTreeEvents);
|
||||
if (trace.enabled) {
|
||||
trace.write("calling _onContextChanged on view " + this._domId, trace.categories.VisualTreeEvents);
|
||||
}
|
||||
|
||||
this._createUI();
|
||||
// Ensure layout params
|
||||
|
Reference in New Issue
Block a user