diff options
| author | LV-426 <lv-426@taproot.org.il> | 2014-11-13 17:41:57 +0200 |
|---|---|---|
| committer | LV-426 <lv-426@taproot.org.il> | 2014-11-13 17:41:57 +0200 |
| commit | 76d1de512a58f023ae348ae8500100490fba9915 (patch) | |
| tree | 87a3df058d3aaf1a3f2c408a784ffe63209cdaac /scripts/signal.js | |
| parent | 4a303d5a7a7e1f8327bb18a2ef3e3093a30a50b6 (diff) | |
rename scripts/ -> src/
Diffstat (limited to 'scripts/signal.js')
| -rw-r--r-- | scripts/signal.js | 22 |
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 - }; -}) |
