summaryrefslogtreecommitdiff
path: root/js/src/Ice/BatchOutgoingAsync.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/Ice/BatchOutgoingAsync.js')
-rw-r--r--js/src/Ice/BatchOutgoingAsync.js37
1 files changed, 37 insertions, 0 deletions
diff --git a/js/src/Ice/BatchOutgoingAsync.js b/js/src/Ice/BatchOutgoingAsync.js
new file mode 100644
index 00000000000..ccebcad9ba5
--- /dev/null
+++ b/js/src/Ice/BatchOutgoingAsync.js
@@ -0,0 +1,37 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2014 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_FOR_ACTIONSCRIPT_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+(function(global){
+ require("Ice/Class");
+ require("Ice/AsyncResult");
+
+ var Ice = global.Ice || {};
+
+ var AsyncResult = Ice.AsyncResult;
+
+ var BatchOutgoingAsync = Ice.Class(AsyncResult, {
+ __init__: function(communicator, operation)
+ {
+ AsyncResult.call(this, communicator, operation, null, null, null, null);
+ },
+ __sent: function(connection)
+ {
+ this._state |= AsyncResult.Done | AsyncResult.OK | AsyncResult.Sent;
+ this._os.resize(0);
+ this.succeed(this);
+ },
+ __finishedEx: function(exc, sent)
+ {
+ this.__exception(exc);
+ }
+ });
+
+ Ice.BatchOutgoingAsync = BatchOutgoingAsync;
+ global.Ice = Ice;
+}(typeof (global) === "undefined" ? window : global));