owl

property
 window.owl 

owl

window.owl = {

require

method
 require() 

Option name Type Description
name string
return object

Requires a module

require: function(name) {
    if (!modules[name] && callbacks[name]) {
        modules[name] = callbacks[name]();
    }
    if (modules[name]) {
        return modules[name];
    } else {
        throw new Error('Module ' + name + ' is not found');
    }
},

define

method
 define() 

Option name Type Description
name string
callback function

Defines a module

define: function(name, callback) {
    callbacks[name] = callback;
}
    };
})(window);