summaryrefslogtreecommitdiff
path: root/scripts/signal.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/signal.js')
-rw-r--r--scripts/signal.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/scripts/signal.js b/scripts/signal.js
deleted file mode 100644
index e5888b4c..00000000
--- a/scripts/signal.js
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Signal/slot (i.e. blackboard pattern) for rhizi.
- *
- * This is a thin wrapper over jquery right now.
- * But just keeping it here to make any future change of implementation slightly
- * easier.
- */
-
-define(['jquery'], function($) {
- function slot(name, handler) {
- $(window).on(name, function(e, args) {
- handler(args);
- });
- };
- function signal(name, obj) {
- $(window).trigger(name, obj);
- }
- return {
- 'slot': slot,
- 'signal': signal
- };
-})