From 917e4416ccfa65d4a6b92f98821d5a5c8b341054 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Wed, 19 Nov 2014 03:20:36 +0200 Subject: add rz_config, provide id generation scheme control: hash/seq, defaulting to seq --- src/main.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main.js') diff --git a/src/main.js b/src/main.js index 67213056..a401c1b2 100644 --- a/src/main.js +++ b/src/main.js @@ -1,5 +1,5 @@ -define(['textanalysis.ui', 'buttons', 'history', 'drag_n_drop', 'robot'], -function(textanalysis_ui, buttons, history, drag_n_drop, robot) { +define(['textanalysis.ui', 'buttons', 'history', 'drag_n_drop', 'robot', 'model/core', 'rz_config'], +function(textanalysis_ui, buttons, history, drag_n_drop, robot, model_core, rz_config) { function expand(obj){ if (!obj.savesize) { @@ -16,8 +16,10 @@ function(textanalysis_ui, buttons, history, drag_n_drop, robot) { $('#textanalyser').onkeyup = function() { expand(this); }; textanalysis_ui.main(); + + model_core.init(rz_config); } - + return { main: main }; } -- cgit v1.3.1