diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-29 22:29:58 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-29 22:39:03 +0200 |
| commit | c8ad3bcd2d0bf7a8b23b2726d756d25536ce1c6a (patch) | |
| tree | eedff4e5f3d00639297ce2012e5d761c5d5fafb1 /src/textanalysis.ui.js | |
| parent | 42eacd877b5564961c2dcc491f5d4b7d62f4e753 (diff) | |
history: record input field
Diffstat (limited to 'src/textanalysis.ui.js')
| -rw-r--r-- | src/textanalysis.ui.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/textanalysis.ui.js b/src/textanalysis.ui.js index 380427be..f41ebaa5 100644 --- a/src/textanalysis.ui.js +++ b/src/textanalysis.ui.js @@ -174,10 +174,13 @@ return { return ret; }); + var input = new Bacon.Bus(); + rz_bus.ui_input.plug(input); if ('oninput' in document.documentElement) { element.on('input', function(e) { text = element.val(); analyzeSentence(text, false); + input.push({where: consts.INPUT_WHERE_TEXTANALYSIS, input: text}); }); } else { console.log('textanalysis.ui: fallback to polling'); |
