pgadmin4/web/pgadmin/static/js/pgadmin.js
Ashesh Vashi aa150030eb Introduced a mechanism to load required javascripts at runtime
(lazy loading) using the require.js. This allows us to load the
javascript required for any node, only when it was loaded in the browser
tree. Also, introduced the mechanism to show/edit/create of any node in
a tab panel (wcDocker.Panel).
2015-06-30 11:21:57 +05:30

17 lines
401 B
JavaScript

(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], factory);
} else if(typeof module !== 'undefined' && module.exports) {
// CommonJS
module.exports = factory();
} else {
// Browser globals
factory();
}
}(function(){
var pgAdmin = window.pgAdmin = window.pgAdmin || {};
return pgAdmin;
}));