summaryrefslogtreecommitdiff
path: root/js/src/Ice/browser/TimerUtil.js
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-01-29 23:47:05 +0100
committerJose <jose@zeroc.com>2015-01-29 23:47:05 +0100
commit75d92841b8070f31cb915c1d2c336e1c05a55f50 (patch)
tree1819f72cf5b59afed9cbfd92c9ea1adf0e973486 /js/src/Ice/browser/TimerUtil.js
parentmore IPv6 fixes (diff)
downloadice-75d92841b8070f31cb915c1d2c336e1c05a55f50.tar.bz2
ice-75d92841b8070f31cb915c1d2c336e1c05a55f50.tar.xz
ice-75d92841b8070f31cb915c1d2c336e1c05a55f50.zip
Fix Woker code to work with minified versions
Diffstat (limited to 'js/src/Ice/browser/TimerUtil.js')
-rw-r--r--js/src/Ice/browser/TimerUtil.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/src/Ice/browser/TimerUtil.js b/js/src/Ice/browser/TimerUtil.js
index f15273882f0..de6b5514ed2 100644
--- a/js/src/Ice/browser/TimerUtil.js
+++ b/js/src/Ice/browser/TimerUtil.js
@@ -98,7 +98,8 @@ Timer.onmessage = function(e)
function workerCode()
{
- function w()
+ return "(" +
+ function()
{
//
// jshint worker: true
@@ -148,8 +149,7 @@ function workerCode()
//
// jshint worker: false
//
- }
- return w.toString() + "w();";
+ }.toString() + "());";
}
if(worker === undefined)