summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'SemanticResultFormats/formats/Exhibit/ajax/scripts/ajax.js')
-rw-r--r--SemanticResultFormats/formats/Exhibit/ajax/scripts/ajax.js45
1 files changed, 0 insertions, 45 deletions
diff --git a/SemanticResultFormats/formats/Exhibit/ajax/scripts/ajax.js b/SemanticResultFormats/formats/Exhibit/ajax/scripts/ajax.js
deleted file mode 100644
index 71726092..00000000
--- a/SemanticResultFormats/formats/Exhibit/ajax/scripts/ajax.js
+++ /dev/null
@@ -1,45 +0,0 @@
-/*==================================================
- * General, miscellaneous SimileAjax stuff
- *==================================================
- */
-
-SimileAjax.ListenerQueue = function(wildcardHandlerName) {
- this._listeners = [];
- this._wildcardHandlerName = wildcardHandlerName;
-};
-
-SimileAjax.ListenerQueue.prototype.add = function(listener) {
- this._listeners.push(listener);
-};
-
-SimileAjax.ListenerQueue.prototype.remove = function(listener) {
- var listeners = this._listeners;
- for (var i = 0; i < listeners.length; i++) {
- if (listeners[i] == listener) {
- listeners.splice(i, 1);
- break;
- }
- }
-};
-
-SimileAjax.ListenerQueue.prototype.fire = function(handlerName, args) {
- var listeners = [].concat(this._listeners);
- for (var i = 0; i < listeners.length; i++) {
- var listener = listeners[i];
- if (handlerName in listener) {
- try {
- listener[handlerName].apply(listener, args);
- } catch (e) {
- SimileAjax.Debug.exception("Error firing event of name " + handlerName, e);
- }
- } else if (this._wildcardHandlerName != null &&
- this._wildcardHandlerName in listener) {
- try {
- listener[this._wildcardHandlerName].apply(listener, [ handlerName ]);
- } catch (e) {
- SimileAjax.Debug.exception("Error firing event of name " + handlerName + " to wildcard handler", e);
- }
- }
- }
-};
-