summaryrefslogtreecommitdiff
path: root/addons/gamification/static
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-03-13 14:02:50 +0100
committerGéry Debongnie <ged@odoo.com>2015-03-18 09:23:37 +0100
commit4fdf74fe21b9fb99ed9cdcb1a0ef2e21d34dafed (patch)
treecfd1e48916e8ff130dd4bc6b60424e13fe1d4c9f /addons/gamification/static
parent59a4706dd97391772efa420a8c5c1f3b1334db7e (diff)
[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.
Diffstat (limited to 'addons/gamification/static')
-rw-r--r--addons/gamification/static/src/js/gamification.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/gamification/static/src/js/gamification.js b/addons/gamification/static/src/js/gamification.js
index 3d180909235..fb70b7e3d61 100644
--- a/addons/gamification/static/src/js/gamification.js
+++ b/addons/gamification/static/src/js/gamification.js
@@ -1,4 +1,4 @@
-odoo.define('gamification.gamification', ['mail.mail', 'web.core', 'web.form_common', 'web.Model', 'web.session', 'web.Widget'], function(require) {
+odoo.define('gamification.gamification', function(require) {
"use strict";
var mail = require('mail.mail');