summaryrefslogtreecommitdiff
path: root/js/src/Ice/Instance.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/Instance.js')
-rw-r--r--js/src/Ice/Instance.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/src/Ice/Instance.js b/js/src/Ice/Instance.js
index c85ec1f41c9..5ec9eb72cb1 100644
--- a/js/src/Ice/Instance.js
+++ b/js/src/Ice/Instance.js
@@ -292,9 +292,12 @@ var Instance = Ice.Class({
this._initData.properties = Properties.createProperties();
}
- if(this._initData.properties.getPropertyAsIntWithDefault("Ice.PrintStackTraces", 0) > 0)
+ if(Ice.__oneOfDone === undefined)
{
- Ice.__printStackTraces = true;
+ Ice.__printStackTraces =
+ this._initData.properties.getPropertyAsIntWithDefault("Ice.PrintStackTraces", 0) > 0;
+
+ Ice.__oneOfDone = true;
}
if(this._initData.logger === null)