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:
@ -48,7 +48,9 @@ function onSrcPropertyChanged(data: dependencyObservable.PropertyChangeData) {
|
||||
webView.stopLoading();
|
||||
|
||||
var src = <string>data.newValue;
|
||||
trace.write("WebView._loadSrc(" + src + ")", trace.categories.Debug);
|
||||
if (trace.enabled) {
|
||||
trace.write("WebView._loadSrc(" + src + ")", trace.categories.Debug);
|
||||
}
|
||||
|
||||
if (utils.isFileOrResourcePath(src)) {
|
||||
ensureFS();
|
||||
|
Reference in New Issue
Block a user