odoo.define('web.Registry', function (require) { "use strict"; var Class = require('web.Class'); var Registry = Class.extend({ init: function (mapping) { this.map = Object.create(mapping || null); }, get: function (key) { return this.map[key]; }, contains: function (key) { return (key in this.map); }, /** * Tries a number of keys, and returns the first object matching one of * the keys. * * @param {Array} keys a sequence of keys to fetch the object for * @returns {Class} the first class found matching an object */ get_any: function (keys) { for (var i=0; i