From 4fdf74fe21b9fb99ed9cdcb1a0ef2e21d34dafed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Fri, 13 Mar 2015 14:02:50 +0100 Subject: [IMP] web+addons: improvement to module system The module system needs to know the dependencies of a given module before executing the function. This is why the dependencies were defined once in an array, and then were described one more times in the call to require. But a trick can simplify this: the boot function can parse the string representation of the module and extract the calls to require from it. It is more work for the processor, but it leads to simpler module definitions. --- addons/web_tip/static/src/js/tip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web_tip') diff --git a/addons/web_tip/static/src/js/tip.js b/addons/web_tip/static/src/js/tip.js index 450bbe9803b..8f8e7f15ff1 100644 --- a/addons/web_tip/static/src/js/tip.js +++ b/addons/web_tip/static/src/js/tip.js @@ -1,4 +1,4 @@ -odoo.define(['web.core', 'web.form_widgets', 'web.Model', 'web.utils', 'web.WebClient'], function (require) { +odoo.define('web_tip.web_tip', function (require) { "use strict"; var core = require('web.core'); -- cgit v1.2.3