mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
Add a flag we can use to skip string template calcs in release
This commit is contained in:
@ -88,9 +88,11 @@ export class Image extends imageCommon.Image {
|
||||
|
||||
var trace = require("trace");
|
||||
|
||||
trace.write("Image stretch: " + this.stretch +
|
||||
", nativeWidth: " + nativeWidth +
|
||||
", nativeHeight: " + nativeHeight, trace.categories.Layout);
|
||||
if (trace.enabled) {
|
||||
trace.write("Image stretch: " + this.stretch +
|
||||
", nativeWidth: " + nativeWidth +
|
||||
", nativeHeight: " + nativeHeight, trace.categories.Layout);
|
||||
}
|
||||
}
|
||||
|
||||
var view = require("ui/core/view");
|
||||
|
Reference in New Issue
Block a user