diff options
| author | Géry Debongnie <ged@odoo.com> | 2015-03-13 14:02:50 +0100 |
|---|---|---|
| committer | Géry Debongnie <ged@odoo.com> | 2015-03-18 09:23:37 +0100 |
| commit | 4fdf74fe21b9fb99ed9cdcb1a0ef2e21d34dafed (patch) | |
| tree | cfd1e48916e8ff130dd4bc6b60424e13fe1d4c9f /addons/website_event/static/src | |
| parent | 59a4706dd97391772efa420a8c5c1f3b1334db7e (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/website_event/static/src')
4 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_event/static/src/js/website.tour.event.js b/addons/website_event/static/src/js/website.tour.event.js index eb3422628f3..f2d9493ba07 100644 --- a/addons/website_event/static/src/js/website.tour.event.js +++ b/addons/website_event/static/src/js/website.tour.event.js @@ -1,4 +1,4 @@ -odoo.define('website_event.tour', ['web.core', 'web.Tour', 'website.website'], function (require) { +odoo.define('website_event.tour', function (require) { 'use strict'; var core = require('web.core'); diff --git a/addons/website_event/static/src/js/website_event.editor.js b/addons/website_event/static/src/js/website_event.editor.js index ee8ae431062..3bec1afa8f1 100644 --- a/addons/website_event/static/src/js/website_event.editor.js +++ b/addons/website_event/static/src/js/website_event.editor.js @@ -1,4 +1,4 @@ -odoo.define('website_event.editor', ['web.core', 'website.contentMenu', 'website.website'], function (require) { +odoo.define('website_event.editor', function (require) { "use strict"; var core = require('web.core'); diff --git a/addons/website_event/static/src/js/website_event.js b/addons/website_event/static/src/js/website_event.js index afa37dff93d..3b2248742a9 100644 --- a/addons/website_event/static/src/js/website_event.js +++ b/addons/website_event/static/src/js/website_event.js @@ -1,4 +1,4 @@ -odoo.define('website_event.website_event', ['web.ajax'], function (require) { +odoo.define('website_event.website_event', function (require) { var ajax = require('web.ajax'); diff --git a/addons/website_event/static/src/js/website_geolocation.js b/addons/website_event/static/src/js/website_geolocation.js index c292ca40833..6223500aed7 100644 --- a/addons/website_event/static/src/js/website_geolocation.js +++ b/addons/website_event/static/src/js/website_geolocation.js @@ -1,4 +1,4 @@ -odoo.define('website_event.geolocation', ['website.snippets.animation'], function (require) { +odoo.define('website_event.geolocation', function (require) { "use strict"; var animation = require('website.snippets.animation'); |
