cyrilleinvalides/choupas/www/admin/editor/scripts/c2c.js

24 lines
457 B
JavaScript
Executable File

function c2c () {
this.containers = array();
this.contents = array();
this.addContainer = function(type, container) {
this.containers[type] = container;
}
this.addContent = function(type, content) {
this.content[type] = content;
}
this.instance = function (container, content, param) {
var contain = new this.containers[container].newContainer();
var content = this.contents[content].newContent(param, contain);
}
}