diff options
author | Joe George <joe@zeroc.com> | 2014-10-17 16:28:27 -0400 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2014-10-17 16:33:12 -0400 |
commit | cc9944e8dd541c92dbf553f5a0065670f16c8d54 (patch) | |
tree | 155315f48eee6f641e484a34a57b76ca59194dc4 /js/demo/Ice/throughput/browser/Client.js | |
parent | Fixed (ICE-5747) - Support for THIRDPARTY_HOME on OS X (diff) | |
download | ice-cc9944e8dd541c92dbf553f5a0065670f16c8d54.tar.bz2 ice-cc9944e8dd541c92dbf553f5a0065670f16c8d54.tar.xz ice-cc9944e8dd541c92dbf553f5a0065670f16c8d54.zip |
Cleanup javascript demos
- Added jshintrc files to browser folders
- Linted all of the demos
Diffstat (limited to 'js/demo/Ice/throughput/browser/Client.js')
-rw-r--r-- | js/demo/Ice/throughput/browser/Client.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/js/demo/Ice/throughput/browser/Client.js b/js/demo/Ice/throughput/browser/Client.js index 1978a93045c..dec7eedd1bc 100644 --- a/js/demo/Ice/throughput/browser/Client.js +++ b/js/demo/Ice/throughput/browser/Client.js @@ -14,20 +14,21 @@ var ThroughputPrx = Demo.ThroughputPrx; // // Initialize sequences. // +var i; var byteSeq = new Uint8Array(Demo.ByteSeqSize); -for(var i = 0; i < Demo.ByteSeqSize; ++i) +for(i = 0; i < Demo.ByteSeqSize; ++i) { byteSeq[i] = 0; } var stringSeq = []; -for(var i = 0; i < Demo.StringSeqSize; ++i) +for(i = 0; i < Demo.StringSeqSize; ++i) { stringSeq[i] = "hello"; } var structSeq = []; -for(var i = 0; i < Demo.StringDoubleSeqSize; ++i) +for(i = 0; i < Demo.StringDoubleSeqSize; ++i) { structSeq[i] = new Demo.StringDouble(); structSeq[i].s = "hello"; @@ -35,7 +36,7 @@ for(var i = 0; i < Demo.StringDoubleSeqSize; ++i) } var fixedSeq = []; -for(var i = 0; i < Demo.FixedSeqSize; ++i) +for(i = 0; i < Demo.FixedSeqSize; ++i) { fixedSeq[i] = new Demo.Fixed(); fixedSeq[i].i = 0; @@ -66,10 +67,10 @@ function run() return ThroughputPrx.checkedCast(proxy).then( function(twoway) { - oneway = twoway.ice_oneway(); + var oneway = twoway.ice_oneway(); var seq; - var seqSize + var seqSize; var wireSize; var proxy; var operation; |