From b3f96efb33d7fc99500147d336ead1536b6b24e9 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Sun, 26 Oct 2014 22:25:29 +0200 Subject: introduce signal, start using in history; use consts for signal name introduces two new modules: scripts/consts.js scripts/signal.js signal is a thin wrapper for jquery('window').on and jquery('window').trigger, which seems like an adaquete signal library - there are faster things around, but why introduce another dependency. --- scripts/consts.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/consts.js (limited to 'scripts/consts.js') diff --git a/scripts/consts.js b/scripts/consts.js new file mode 100644 index 00000000..927a30d3 --- /dev/null +++ b/scripts/consts.js @@ -0,0 +1,5 @@ +define('consts', function() { + return { + RECORD_LINKS: 'record_links', + }; +}); -- cgit v1.3.1